nautilus opens in wayland if started out of x.org, should respect DISPLAY, WAYLAND_DISPLAY
start two gnome-shell one on tty1 and X (startx), one on tty2 with wayland (XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session).
open a gnome terminal switch to tty1, open a gnome-terminal.
start nautilus there is no WAYLAND_DISPLAY set. only DISPLAY. type "nautilus" and it launches not on tty1 where the terminal is, but on tty2, wayland, instead of tty1. its working there.
i tried with other applications as well and this seems to be a more general issue with gnome applications:
- all open correctly when started on tty2, wayland.
- gnome-terminal opens correctly on tty1, tty2. the only one behaving as expected.
- epiphany exits with an error on tty1
$ epiphany EGLDisplay Initialization failed: EGL_NOT_INITIALIZED WaylandCompositor requires eglCreateImage and eglDestroyImage. Nested Wayland compositor could not initialize EGL Gdk-Message: 04:22:47.904: Error 71 (Protocol error) dispatching to Wayland display.
- shotwell opens on tty2, menus displaced
- gnome-texteditor opens on tty2, working
- totem crashes
$ totem (totem:31907): Clutter-CRITICAL **: 04:29:27.511: Unable to initialize Clutter: Unable to initialize the Clutter backend: no available drivers found. (totem:31907): Totem-WARNING **: 04:29:27.511: gtk-clutter failed to initialise, expect problems from here on. (totem:31907): Clutter-CRITICAL **: 04:29:27.641: Unable to initialize Clutter: Unable to initialize the Clutter backend: no available drivers found. (totem:31907): Clutter-WARNING **: 04:29:27.641: Missing Cogl context: was Clutter correctly initialized? Segmentation fault (core dumped)