Enforce screen locking before requesting switch to a different user.#114
Enforce screen locking before requesting switch to a different user.#114sunweaver wants to merge 1 commit intomate-desktop:masterfrom
Conversation
|
There are other ways to switch users, some of them not being shipped by MATE, so it's usually the responsibility of the DM to lock the session. Either by asking the session to lock itself, or by locking screensavers directly. See here for instance: https://github.com/linuxmint/mdm/blob/master/gui/mdmflexiserver.c#L206 If your DM does not lock your session, make sure to report it as a bug on the DM as well. Now, with that said, it should be quite harmless to accept this PR. It shouldn't create issues with MDM and it should help a little with DMs which don't support mate-screensaver (at least in the cases where the user switches users via mate-screensaver). |
|
Btw, it might be better to make the call in manager_switch_user() directly. |
|
Well, mdm is only use by linuxmint. |
|
Could this be enforced when issuing a suspend as well? |
|
Forget the suspend issue, that was due to something else. |
One of my customers noticed that there is a security issue with user switching via the logout dialog.
The session does not get locked when user switching is requested via the logout dialog. However, this should be enforced.
I am not sure if the proposed patch is a generic way of requesting a screen lock. However, the approach works well on mate-session-manager as found in Debian jessie.