! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-terminal ignores DISPLAY env variable.
Status:
RESOLVED: INVALID
Product:
Xfce4-terminal
Component:
General

Comments

Description Kresp 2017-04-30 07:04:36 CEST
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
Comment 1 Igor editbugs 2017-04-30 16:25:15 CEST
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.
Comment 2 Kresp 2017-05-01 15:30:36 CEST
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.
Comment 3 Igor editbugs 2017-05-04 03:29:53 CEST
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?
Comment 4 Igor editbugs 2019-09-17 22:14:12 CEST
GTK3 doesn't support multiple screens within one display - there's always only 1 screen. Closing.

Bug #13540

Reported by:
Kresp
Reported on: 2017-04-30
Last modified on: 2019-09-17

People

CC List:
1 user

Version

Attachments

Additional information