diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-06-12 10:44:00 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-06-12 11:02:17 +0200 |
commit | e3b4202b45f3a52dbb61632a9133f2dd0c1da343 (patch) | |
tree | e960b53135a0c8bdca4d3bd50ec6aa2691aed51d /arctica-guest-session-setup | |
parent | ccba9e587a8ac83061ae34a98c019d734a8b1f69 (diff) | |
download | arctica-greeter-e3b4202b45f3a52dbb61632a9133f2dd0c1da343.tar.gz arctica-greeter-e3b4202b45f3a52dbb61632a9133f2dd0c1da343.tar.bz2 arctica-greeter-e3b4202b45f3a52dbb61632a9133f2dd0c1da343.zip |
Make guest account support functional. Port various items from Ubuntu's LightDM package.
Diffstat (limited to 'arctica-guest-session-setup')
-rwxr-xr-x | arctica-guest-session-setup | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arctica-guest-session-setup b/arctica-guest-session-setup new file mode 100755 index 0000000..595d0bc --- /dev/null +++ b/arctica-guest-session-setup @@ -0,0 +1,33 @@ +#!/bin/sh + +HOME=${HOME:-$(getent passwd $(whoami) | cut -f6 -d:)} + +# disable some services that are unnecessary for the guest session +services="jockey-kde.desktop jockey-gtk.desktop update-notifier.desktop user-dirs-update-gtk.desktop" + +for service in ${services}; do + if [ -e /etc/xdg/autostart/${service} ]; then + [ -f ${HOME}/.config/autostart/${service} ] || cp /etc/xdg/autostart/${service} ${HOME}/.config/autostart + echo "X-GNOME-Autostart-enabled=false" >> ${HOME}/.config/autostart/${service} + fi +done + +# disable Unity shortcut hint +[ -d ${HOME}/.cache/unity ] || mkdir -p ${HOME}/.cache/unity +touch ${HOME}/.cache/unity/first_run.stamp + +[ -d ${HOME}/.kde/share/config ] || mkdir -p ${HOME}/.kde/share/config +echo "[Basic Settings]" >> ${HOME}/.kde/share/config/nepomukserverrc +echo "Start Nepomuk=false" >> ${HOME}/.kde/share/config/nepomukserverrc + +echo "[Event]" >> ${HOME}/.kde/share/config/notificationhelper +echo "hideHookNotifier=true" >> ${HOME}/.kde/share/config/notificationhelper +echo "hideInstallNotifier=true" >> ${HOME}/.kde/share/config/notificationhelper +echo "hideRestartNotifier=true" >> ${HOME}/.kde/share/config/notificationhelper + +# Load restricted session +#dmrc='[Desktop]\nSession=guest-restricted' +#/bin/echo -e ${dmrc} > ${HOME}/.dmrc + +# delay the launch of info dialog +echo "export DIALOG_SLEEP=4" >> ${HOME}/.profile |