In a university computer lab session we disable shutdown, restart, suspend, hibernate, switch user, and lock screen.
Some are done with polkit (suspend, hibernate) and then the suspend menuitem is not shown on the session menu.
Some are done with dconf e.g.
# Show real name (and wider session menu as a result); lab also disable shutdown
[com.canonical.indicator.session]
show-real-name-on-panel=true
suppress-logout-restart-shutdown=true
suppress-restart-menuitem=true
suppress-shutdown-menuitem=true
user-show-menu=false
# Software installation not possible for normal users
[desktop.gnome.unity.lenses.applications]
display-available-apps=false
# Disable the lock screen & print-setup not on laptops, but in labs
[org.gnome.desktop.lockdown]
disable-lock-screen=true
disable-print-setup=true
disable-user-switching=true
# Screensaver lockdown in labs
[org.gnome.desktop.screensaver]
lock-enabled=false
user-switch-enabled=false
This works fine except there is no value for suppress-lock-menuitem or suppress-switch-menuitem or suppress-lock-switch-menuitem, and the Lock/Switch User menuitem still appears; even though it is non-functional. Clicking on it blacks out the screen for a second and then shows the desktop again.
In a university computer lab session we disable shutdown, restart, suspend, hibernate, switch user, and lock screen.
Some are done with polkit (suspend, hibernate) and then the suspend menuitem is not shown on the session menu.
Some are done with dconf e.g.
# Show real name (and wider session menu as a result); lab also disable shutdown indicator. session] name-on- panel=true logout- restart- shutdown= true restart- menuitem= true shutdown- menuitem= true menu=false
[com.canonical.
show-real-
suppress-
suppress-
suppress-
user-show-
# Quiet login screens unity-greeter] sound=false
[com.canonical.
play-ready-
# Update-notifier update- notifier] notifications= true
[com.ubuntu.
no-show-
# Software installation not possible for normal users gnome.unity. lenses. applications] available- apps=false
[desktop.
display-
# Disable the lock screen & print-setup not on laptops, but in labs desktop. lockdown] lock-screen= true print-setup= true user-switching= true
[org.gnome.
disable-
disable-
disable-
# Screensaver lockdown in labs desktop. screensaver] enabled= false
[org.gnome.
lock-enabled=false
user-switch-
# Logout prompt SessionManager]
[org.gnome.
logout-prompt=false
This works fine except there is no value for suppress- lock-menuitem or suppress- switch- menuitem or suppress- lock-switch- menuitem, and the Lock/Switch User menuitem still appears; even though it is non-functional. Clicking on it blacks out the screen for a second and then shows the desktop again.