Sublime Forum

Sublime Text 3 windows open without focus from command line

#1

When a Sublime window is already open and I do subl . , a new window opens, but it does not steal focus. Instead I get a GNOME notification from Sublime that says:

"untitled (folder name) - Sublime Text" is ready

I’d expect the new window to be focused automatically when using the command.

I’m on Pop!_OS 20.04 with Sublime 3211

Any ideas or should I file a bug report?

0 Likes

#2

Just to check, did you install ST from one of the official ST package repositories? Or are you using an unofficial /third party snap bundle or something instead?

0 Likes

#3

Yeah, I’m using the official apt repo from https://www.sublimetext.com/docs/3/linux_repositories.html

0 Likes

#4

hmm, are you using wayland or x11?

0 Likes

#5

Nothing fancy here; I’m running the version of x11 Pop!_OS shipped with.

$ xdpyinfo | grep version

version number:    11.0
X.Org version: 1.20.8
0 Likes

#6

I’d say report it on the issue tracker then :slight_smile:

0 Likes

#7

Wayland gives the same output for xdpyinfo as X11 does, as it runs X11 as a compatibility layer. To check for Wayland use either echo $XDG_SESSION_TYPE or if that doesn’t work run xeyes and see if applications like nautilus/terminal/etc make the eyes move or not.

0 Likes