[mate-session-manager] 02/03: debian/patches: Add 0005_lock-session-before-user-switch.patch. Lock screen before user switch request if user switching is requested from within the logout dialog window. (Closes: #809798).
Mike Gabriel
sunweaver at debian.org
Mon Jan 4 08:46:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch master
in repository mate-session-manager.
commit a33262434ed0378c046506666994f82e5d028c05
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Dec 15 14:37:51 2015 +0100
debian/patches: Add 0005_lock-session-before-user-switch.patch. Lock screen before user switch request if user switching is requested from within the logout dialog window. (Closes: #809798).
---
.../0005_lock-session-before-user-switch.patch | 32 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 33 insertions(+)
diff --git a/debian/patches/0005_lock-session-before-user-switch.patch b/debian/patches/0005_lock-session-before-user-switch.patch
new file mode 100644
index 0000000..29558ad
--- /dev/null
+++ b/debian/patches/0005_lock-session-before-user-switch.patch
@@ -0,0 +1,32 @@
+commit 5886fb73ba6cc13c9a634f563b9e4ea6a749509e
+Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+Date: Wed Dec 9 13:52:31 2015 +0100
+
+ Enforce screen locking before requesting to switch to a different user.
+
+diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c
+index db392b8..e654064 100644
+--- a/mate-session/gsm-manager.c
++++ b/mate-session/gsm-manager.c
+@@ -3178,6 +3178,19 @@ logout_dialog_response (GsmLogoutDialog *logout_dialog,
+ case GTK_RESPONSE_DELETE_EVENT:
+ break;
+ case GSM_LOGOUT_RESPONSE_SWITCH_USER:
++
++ ; /* place an empty statement between label above and declaration below... */
++
++ /* Lock screen before requesting user switch
++ */
++ GError *error;
++ error = NULL;
++ g_spawn_command_line_async ("mate-screensaver-command --lock", &error);
++ if (error != NULL) {
++ g_warning ("Couldn't lock screen: %s", error->message);
++ g_error_free (error);
++ }
++
+ request_switch_user (manager);
+ break;
+ case GSM_LOGOUT_RESPONSE_HIBERNATE:
+
+
diff --git a/debian/patches/series b/debian/patches/series
index bd23d35..96c9250 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
1003_typo-fix.patch
+0005_lock-session-before-user-switch.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-session-manager.git
More information about the pkg-mate-commits
mailing list