Sublime Forum

[solved] Open_files_in_new_window not woking on Linux

#1

Hi,

I’m using Sublime Text 4113 on Debian 11 64 bit.

Configuration option “open_files_in_new_window” is set to “never”, however when there’s a window open and I run Sublime Text again using /opt/sublime_text/sublime_text a new window is opened instead a tab on the existing one.

0 Likes

#2

you could try running subl instead of sublime_text

0 Likes

#3

There’s no “subl” in the tarball.

0 Likes

#4

On Linux subl is just a symlink or shell wrapper around sublime_text because on that platform they’re the same thing (whereas on Windows and MacOS, the vagaries of those platform require an additional helper program).

However, on my Linux boxes running sublime_text (or subl, which I manually symlinked because I also use the tarball version) just focuses the existing window unless I manually add -n to the end to tell it to create a new window.

How exactly are you invoking this? Are you doing it manually from a terminal, or from some sort of launcher? If the latter, your launcher might have additional arguments added to it or similar.

0 Likes

#5

Hi,

I was starting Sublime Text from a terminal executing /opt/sublime_text/sublime_text

Seems the problem wasn’t with Sublime Text - doing some further investigation, I found that Sublime Text wasn’t allowed to write to “/tmp” which caused further instances to miss the fact a window was already open.

0 Likes