[go: nahoru, domu]

Skip to content

Commit

Permalink
Always show the logout menu in gnome
Browse files Browse the repository at this point in the history
Gnome by default does not display the user section which contains the
logout option in the system menu when there is only one user. This is
a problem because there is normally only one user in a crouton chroot,
and there is no other way for the user to exit the chroot from the UI
(though it can be done using the CLI.) In this commit I install
dconf-tools and specifies a new system wide default to always show the
logout option.

I also incidentally separated the gnome packages in new lines and
alphabetized them for readability.

Fixes: dnschneid#3243
  • Loading branch information
kindrowboat committed Dec 1, 2018
1 parent 38012fd commit d239227
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions targets/gnome
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,32 @@ else
fi

### Append to prepare.sh:
install --minimal evolution-data-server gnome-control-center \
gnome-screensaver gnome-session $legacy_session_package \
gnome-shell gnome-themes-standard gvfs-backends nautilus \
unzip gtk2-engines-pixbuf pulseaudio
install --minimal \
$legacy_session_package \
dconf-tools \
evolution-data-server \
gnome-control-center \
gnome-screensaver \
gnome-session \
gnome-shell \
gnome-themes-standard \
gtk2-engines-pixbuf \
gvfs-backends \
nautilus \
pulseaudio \
unzip

mkdir -p /etc/dconf/profile
mkdir -p /etc/dconf/db/local.d
cat << EOF > /etc/dconf/profile/user
user-db:user
system-db:local
EOF
cat << EOF > /etc/dconf/db/local.d/01-always_show_logout
[org/gnome/shell]
always-show-log-out=true
EOF
dconf update

TIPS="$TIPS
You can start GNOME via the startgnome host command: sudo startgnome
Expand Down

0 comments on commit d239227

Please sign in to comment.