Sublime Forum

Working directory is always / (root dir)

#1

ST3 (tested with builds 3143 and 3126) always have their working directory set to / (the root dir). This means anything that expected the working directory of the shell where ST was executed to be inherited isn’t going to function properly (e.g. opening files by relative paths using the “Clipboard Path” plugin always fails because it can’t find any such file because it is working relative to root, while I expected it to be working relative to the wd of the shell I ran subl in). I can see the chdir("/") with strace, so it is definitely ST doing this.

1 Like