← Back to team overview

aims team mailing list archive

[Bug 1325353] Re: Lock/Switch stay in session menu even if disabled

 

** Description changed:

+ [Impact]
+ Session indicator no longer honours the lockdown settings for screen locking and user switching that worked in 12.04 LTS. There is no alternative settings to perform the same behaviour. This functionality is required in large installations where users are not allowed to perfom these actions (e.g. corporate installations / labs / public terminals).
  
- 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.
+ [Test Case]
  
- # 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
- 
- # Quiet login screens
- [com.canonical.unity-greeter]
- play-ready-sound=false
- 
- # Update-notifier
- [com.ubuntu.update-notifier]
- no-show-notifications=true
- 
- # 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
+ 1. Create the file /usr/share/glib-2.0/schemas/lockdown.gschema.override:
  [org.gnome.desktop.lockdown]
  disable-lock-screen=true
- disable-print-setup=true
  disable-user-switching=true
+ 2. Reboot
+ 3. Log into a session
  
- # Screensaver lockdown in labs
- [org.gnome.desktop.screensaver]
- lock-enabled=false
- user-switch-enabled=false
+ Expected result:
+ Opening the session indicator should not show any options to lock the screen or switch the user.
  
- # Logout prompt
- [org.gnome.SessionManager]
- logout-prompt=false
+ Observed result:
+ "Lock/Switch Account" and user list shown (for installations with more than one user). "Lock" shown for installations with one user.
  
- 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.
+ [Regression Potential]
+ Potential for modified options to be shown/hidden incorrectly. Risk reduced by using existing regression tests, adding new test for lockdown and manually testing each case.

** Description changed:

  [Impact]
- Session indicator no longer honours the lockdown settings for screen locking and user switching that worked in 12.04 LTS. There is no alternative settings to perform the same behaviour. This functionality is required in large installations where users are not allowed to perfom these actions (e.g. corporate installations / labs / public terminals).
+ Session indicator no longer honours the lockdown settings that worked in 12.04 LTS. There are no alternative settings to perform the same behaviour. This functionality is required in large installations where users are not allowed to perfom these actions (e.g. corporate installations / labs / public terminals).
  
  [Test Case]
  
  1. Create the file /usr/share/glib-2.0/schemas/lockdown.gschema.override:
  [org.gnome.desktop.lockdown]
  disable-lock-screen=true
  disable-user-switching=true
  2. Reboot
  3. Log into a session
  
  Expected result:
  Opening the session indicator should not show any options to lock the screen or switch the user.
  
  Observed result:
  "Lock/Switch Account" and user list shown (for installations with more than one user). "Lock" shown for installations with one user.
  
  [Regression Potential]
  Potential for modified options to be shown/hidden incorrectly. Risk reduced by using existing regression tests, adding new test for lockdown and manually testing each case.

** Description changed:

  [Impact]
  Session indicator no longer honours the lockdown settings that worked in 12.04 LTS. There are no alternative settings to perform the same behaviour. This functionality is required in large installations where users are not allowed to perfom these actions (e.g. corporate installations / labs / public terminals).
  
  [Test Case]
  
  1. Create the file /usr/share/glib-2.0/schemas/lockdown.gschema.override:
  [org.gnome.desktop.lockdown]
  disable-lock-screen=true
  disable-user-switching=true
  2. Reboot
  3. Log into a session
  
  Expected result:
  Opening the session indicator should not show any options to lock the screen or switch the user.
  
  Observed result:
- "Lock/Switch Account" and user list shown (for installations with more than one user). "Lock" shown for installations with one user.
+ "Lock/Switch Account" and user list shown for installations with more than one user. "Lock" shown for installations with one user.
  
  [Regression Potential]
  Potential for modified options to be shown/hidden incorrectly. Risk reduced by using existing regression tests, adding new test for lockdown and manually testing each case.

-- 
You received this bug notification because you are a member of AIMS,
which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1325353

Title:
  Lock/Switch stay in session menu even if disabled

Status in The Session Menu:
  In Progress
Status in “indicator-session” package in Ubuntu:
  Fix Released
Status in “indicator-session” source package in Trusty:
  Triaged

Bug description:
  [Impact]
  Session indicator no longer honours the lockdown settings that worked in 12.04 LTS. There are no alternative settings to perform the same behaviour. This functionality is required in large installations where users are not allowed to perfom these actions (e.g. corporate installations / labs / public terminals).

  [Test Case]

  1. Create the file /usr/share/glib-2.0/schemas/lockdown.gschema.override:
  [org.gnome.desktop.lockdown]
  disable-lock-screen=true
  disable-user-switching=true
  2. Reboot
  3. Log into a session

  Expected result:
  Opening the session indicator should not show any options to lock the screen or switch the user.

  Observed result:
  "Lock/Switch Account" and user list shown for installations with more than one user. "Lock" shown for installations with one user.

  [Regression Potential]
  Potential for modified options to be shown/hidden incorrectly. Risk reduced by using existing regression tests, adding new test for lockdown and manually testing each case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/indicator-session/+bug/1325353/+subscriptions