Commit 5e36cd63 authored by Ray Strode's avatar Ray Strode

gnome-session: make sure wayland sessions get a login shell

Users expect their shell profiles to get sourced at startup, which
doesn't happen with wayland sessions.

This commit brings back that feature, by making the gnome-shell
wrapper script run a login shell.

https://bugzilla.gnome.org/show_bug.cgi?id=736660
parent 66b9e934
......@@ -12,6 +12,14 @@ if [ -n "$REGION" ]; then
export LC_PAPER=$REGION
fi
dbus-update-activation-environment --all > /dev/null 2>&1 ||:
update_command="dbus-update-activation-environment --all --systemd > /dev/null 2>&1"
if [ "$XDG_SESSION_TYPE" = "wayland" -a
"$XDG_SESSION_CLASS" != "greeter" -a
-n "$SHELL" ]; then
(exec -l $SHELL -c "$update_command") || eval "$update_command"
else
eval "$update_command"
fi
exec @libexecdir@/gnome-session-binary "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment