Sublime Forum

X11 DISPLAY env ignored?

#1

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?

0 Likes

#2

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?

0 Likes

#3

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

0 Likes

#4

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?

0 Likes

#5

FWIW x11 forwarding over ssh worked for me last I tried.

0 Likes

#6

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

0 Likes

#7

AFAIK that also needs some sort of setting the display, how did you do that?

0 Likes

#8

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.

0 Likes