GNOME Bugzilla – Bug 766819
XDG_CURRENT_DESKTOP and maybe other env variables not set when starting wayland session
Last modified: 2016-05-24 11:18:39 UTC
Hi, With gnome-shell as a wayland compositor, if I'm starting nautilus using the launcher icon, it seems that the default application are not properly set (/usr/share/applications/gnome-mimeapps.list is apparently not read) If I'm starting from gnome-terminal, the default applications settings are properly applied. I feel this is an issue with the XDG_DATA_DIRS env variable I'm also using systemd user session, but that doesn't seems to do a difference I'm not exactly sure this is an issue directly related to nautilus
The problem seems to happen when the XDG_CURRENT_DESKTOP="GNOME" environment variable is not set. So the question is what is not setting the environment variable when starting the wayland session
So to recap, when starting a wayland session it seems that the applications like nautilus (probably all the applications that are dbus activated) lack of some environment variables (like XDG_CURRENT_DESKTOP) when started.
*** This bug has been marked as a duplicate of bug 766176 ***