#!/bin/bash CURRENT_THEME=$(dconf read /org/gnome/desktop/interface/icon-theme) logger -t LliureXUpSession "Checking icon theme" if [ ${CURRENT_THEME} = "'Humanity'" ]; then logger -t LliureXUpSession "Setting icon theme" dconf write /org/gnome/desktop/interface/icon-theme "'future-green'" || true fi logger -t "LliureXUpSession" "Checking automount" rc=0 lliurex-version |grep -q "server" || rc=1 if [ $rc -eq 0 ]; then Z=$(echo $DISPLAY | cut -d ":" -f 1) if [ ! -z $Z ]; then logger -t "LliureXUpSession" "Disabling automount on ThinClients" dconf write /org/gnome/desktop/media-handling/automount false dconf write /org/gnome/desktop/media-handling/automount-open false dconf write /org/gnome/nautilus/desktop/volumes-visible false else logger -t "LliureXUpSession" "Enabling on server" dconf write /org/gnome/desktop/media-handling/automount true dconf write /org/gnome/desktop/media-handling/automount-open true dconf write /org/gnome/nautilus/desktop/volumes-visible true fi else logger -t "LliureXUpSession" "Checking automount: Nothing to do" dconf write /org/gnome/desktop/media-handling/automount true dconf write /org/gnome/desktop/media-handling/automount-open true dconf write /org/gnome/nautilus/desktop/volumes-visible true fi exit 0