• Andreas Henriksson's avatar
    main: fix starting gnome session via startx · 890a797a
    Andreas Henriksson authored
    The changes related to gsm_util_setenv during 3.19.x seems to have
    broken starting a gnome desktop the old fashioned way, eg. via startx.
    
    The gnome.session required components has OnlyShowIn=GNOME; which
    disqualifies them from being started unless XDG_CURRENT_DESKTOP is also
    set to GNOME (by the gio utility function used to look up info).
    
    Currently gnome-session already carries code to catch the case of
    XDG_CURRENT_DESKTOP being unset and set it to GNOME as a fallback.
    Unfortunately the changes to gsm_util_setenv seems to have made it only
    set the values in the (dbus activated) child environment, rather than
    the current environment which g_desktop_app_info_get_show_in is looking
    at.
    
    Make the fallback code set XDG_CURRENT_DESKTOP in both current
    and child environment fixes it.
    Also move the entire hunk of code before initializing gio to
    prevent potential thread issues, now that is uses g_setenv.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764379
    890a797a
Name
Last commit
Last update
..
Makefile.am Loading commit data...
README Loading commit data...
gdm-log.c Loading commit data...
gdm-log.h Loading commit data...
gnome-session.in Loading commit data...
gsm-app.c Loading commit data...
gsm-app.h Loading commit data...
gsm-autostart-app.c Loading commit data...
gsm-autostart-app.h Loading commit data...
gsm-client.c Loading commit data...
gsm-client.h Loading commit data...
gsm-consolekit.c Loading commit data...
gsm-consolekit.h Loading commit data...
gsm-dbus-client.c Loading commit data...
gsm-dbus-client.h Loading commit data...
gsm-fail-whale-dialog.c Loading commit data...
gsm-fail-whale-dialog.h Loading commit data...
gsm-fail-whale.c Loading commit data...
gsm-fail-whale.h Loading commit data...
gsm-icon-names.h Loading commit data...
gsm-inhibitor-flag.h Loading commit data...
gsm-inhibitor.c Loading commit data...
gsm-inhibitor.h Loading commit data...
gsm-manager-logout-mode.h Loading commit data...
gsm-manager.c Loading commit data...
gsm-manager.h Loading commit data...
gsm-presence-flag.h Loading commit data...
gsm-presence.c Loading commit data...
gsm-presence.h Loading commit data...
gsm-process-helper.c Loading commit data...
gsm-process-helper.h Loading commit data...
gsm-session-fill.c Loading commit data...
gsm-session-fill.h Loading commit data...
gsm-session-save.c Loading commit data...
gsm-session-save.h Loading commit data...
gsm-shell-extensions.c Loading commit data...
gsm-shell-extensions.h Loading commit data...
gsm-shell.c Loading commit data...
gsm-shell.h Loading commit data...
gsm-store.c Loading commit data...
gsm-store.h Loading commit data...
gsm-system.c Loading commit data...
gsm-system.h Loading commit data...
gsm-systemd.c Loading commit data...
gsm-systemd.h Loading commit data...
gsm-util.c Loading commit data...
gsm-util.h Loading commit data...
gsm-xsmp-client.c Loading commit data...
gsm-xsmp-client.h Loading commit data...
gsm-xsmp-server.c Loading commit data...
gsm-xsmp-server.h Loading commit data...
main.c Loading commit data...
org.gnome.SessionManager.App.xml Loading commit data...
org.gnome.SessionManager.Client.xml Loading commit data...
org.gnome.SessionManager.ClientPrivate.xml Loading commit data...
org.gnome.SessionManager.Inhibitor.xml Loading commit data...
org.gnome.SessionManager.Presence.xml Loading commit data...
org.gnome.SessionManager.xml Loading commit data...
test-client-dbus.c Loading commit data...
test-inhibit.c Loading commit data...
test-process-helper.c Loading commit data...