Created
February 7, 2015 19:12
-
-
Save schlomo/a24f43c00e4166592579 to your computer and use it in GitHub Desktop.
Ubuntu guest session customization. Install as /etc/guest-session/prefs.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
touch "$HOME"/.skip-guest-warning-dialog | |
if [[ -r /usr/share/applications/google-chrome.desktop ]] ; then | |
mkdir -p "$HOME"/.local/share/applications | |
sed -e '/Exec/s/google[a-z-]\+/& --password-store=basic/' -e '/^Name=/s/=/&Guest /' \ | |
< /usr/share/applications/google-chrome.desktop > "$HOME"/.local/share/applications/google-chrome.desktop | |
fi | |
mkdir -p "$HOME"/.config/autostart | |
for service in blueman.desktop deja-dup-monitor.desktop indicator-bluetooth.desktop indicator-power.desktop light-locker.desktop vino-server.desktop nm-applet.desktop ; do | |
if [[ -e /etc/xdg/autostart/$service ]] ; then | |
sed -e '$a X-GNOME-Autostart-enabled=false' < /etc/xdg/autostart/$service > "$HOME"/.config/autostart/$service | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment