Trying to get sublime on a different X11 DISPLAY…
Looks like the DISPLAY
environment is ignored and there’s no --display option.
What’s going on?
Trying to get sublime on a different X11 DISPLAY…
Looks like the DISPLAY
environment is ignored and there’s no --display option.
What’s going on?
If ST is already running it won’t launch a new process and thus not pass any environment variables. Have you made sure ST is fully exited?
Nope, no SL running:
a@AUTO:~ $ echo $DISPLAY
172.zzz.zzz.zzz:0
a@AUTO:~ $ ps ax|grep sublime
1277 pts/0 S+ 0:00 grep --color=auto sublime
a@AUTO:~ $ /opt/sublime_text/sublime_text
uses the wrong display
BTW, it’s build 4143 on ubuntu 22.04
We don’t do anything in relation to DISPLAY
; we just ask GTK for a window. Are you perhaps in a Wayland environment and it’s not using X11?
Yah, apparently, this is on WSL, but I’m trying to move away from wayland/WSLg, because it does not make me really happy. All other apps I tried seem to respect DISPLAY
or --display
ssh just sets the DISPLAY
environment variable, there was nothing I needed to do. You say other apps respect it, are they also GTK based? Perhaps running in the foreground can help, try subl --multiinstance --debug
.