I have two X displays - :1.0 and :1.1. If I start xfce4-terminal like this: $ DISPLAY=:1.1 xfce4-terminal then it ignores $DISPLAY variable and opens on primary :1.0 display. I checked few other applications (thunderbird, mpv, st, thunar, lxrandr, sakura), and they all respect $DISPLAY set previously. --display and --default-display arg keys also seem to be ignored when provided to xfce4-terminal: $ xfce4-terminal --default-display=:1.1 --display=:1.1 # still opens on :1.0
Hi Kresp, I suspect that you have an xfce4-terminal instance already running on 1.0, this is why DISPLAY setting is ignored. Can you try running `DISPLAY=:1.1 xfce4-terminal --disable-server`? This will run another instance which should respect the setting.
Yep, this turns out to be the case: with --disable-server, terminal goes to specified display. This behaviour seems weird though. My expectation is that new instance will: 1. Look at $DISPLAY 2. Try to find server already running on $DISPLAY 3a. If there is one - attach to it 3b. If there is none - spawn new one Instead it just attaches to whichever is running, no matter where. Feels like a bug to me.
Well, it appears this has been done intentionally, by the following commit: https://git.xfce.org/apps/xfce4-terminal/commit/?id=d1dc0d1f1ef0591d06ef7998c1956834bc4d9869 This means, using `DISPLAY=0 xfce4-terminal` and `DISPLAY=1 xfce4-terminal` would result in desired behavior for you. Do you think it makes sense?
GTK3 doesn't support multiple screens within one display - there's always only 1 screen. Closing.