[mate-session-manager] 04/04: 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.
Mike Gabriel
sunweaver at debian.org
Tue Jan 24 17:17:00 UTC 2017
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch debian/jessie/updates
in repository mate-session-manager.
commit f19f2cebf7bc1689e3cd5dacd7ad5a146288312c
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.
---
debian/changelog | 10 +++++++
.../0005_lock-session-before-user-switch.patch | 32 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 43 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 220157a..0ba695b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+mate-session-manager (1.8.1-8+deb8u2) UNRELEASED; urgency=medium
+
+ * 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.
+ + Revert shipping defaults.list.
+
+ -- Mike Gabriel <sunweaver at debian.org> Wed, 09 Dec 2015 13:55:34 +0100
+
mate-session-manager (1.8.1-8+deb8u1) jessie-proposed-updates; urgency=medium
* debian/defaults.list:
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 650e93d..7ef9f3b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,4 +2,5 @@
0002_msmgnome-Allow-users-to-disable-one-or-both-compatib.patch
0003_set-XDG-CURRENT-DESKTOP-if-empty.patch
0004_no-crash-if-no-req-apps-found.patch
+0005_lock-session-before-user-switch.patch
1001_hypen-used-as-minus-sign-man-page-fix.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