Commit fb06a7d8 authored by Guido Gunther's avatar Guido Gunther

Start gnome-session via a login shell

This makes sure all files from /etc/profile are properly sourced.  The
trick is taken from /usr/bin/gnome-session itself.
parent 89a2e798
Pipeline #486 failed with stages
in 3 minutes and 37 seconds
......@@ -15,4 +15,6 @@ if [ -f "/etc/phosh/rootston.ini" ]; then
ROOTSTON_INI=/etc/phosh/rootston.ini
fi
exec "${ROOTSTON}" -C "${ROOTSTON_INI}" -E "gnome-session --disable-acceleration-check --session=phosh"
# Run gnome-session through a login shell so it picks
# variables from /etc/profile.d (XDG_*)
exec "${ROOTSTON}" -C "${ROOTSTON_INI}" -E "bash -lc 'gnome-session --disable-acceleration-check --session=phosh'"
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