File: 1003_RDA-Disable-switch-user-button-if-session-is-remote.patch

package info (click to toggle)
mate-screensaver 1.26.1-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,284 kB
  • sloc: ansic: 19,410; makefile: 678; xml: 469; sh: 70
file content (24 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 140a0b7d511589647256795a05c3b114f226a6af Mon Sep 17 00:00:00 2001
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Date: Wed, 18 Dec 2019 08:53:28 +0100
Subject: [PATCH] RDA: Disable switch user button, if session is remote.

---
 src/gs-lock-plug.c | 6 ++++++
 1 file changed, 6 insertions(+)

--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -1275,6 +1275,12 @@
 
 	if (switch_enabled)
 	{
+#ifdef HAVE_RDA
+		if (rda_session_is_remote()) {
+			gs_debug ("No switch user capability if session is remote");
+			gtk_widget_hide (plug->priv->auth_switch_button);
+		} else
+#endif /* HAVE_RDA */
 		if (process_is_running ("mdm"))
 		{
 			/* MDM  */