summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Vlahavas <[email protected]>2016-10-19 23:42:13 +0300
committermonsta <[email protected]>2017-01-20 15:49:50 +0300
commit60f934bdaec537854f8ae66278d74231383a961c (patch)
tree56fc0742a593607039008efd95e7b58a3f10aecf
parent49a7e7401d4493e69754eb4ffca238004c6fee1f (diff)
downloadmate-screensaver-60f934bdaec537854f8ae66278d74231383a961c.tar.bz2
mate-screensaver-60f934bdaec537854f8ae66278d74231383a961c.tar.xz
Also look for gdm-binary process
In some systems the gdm binary is actually called "gdm-binary", so we need to check for that too.
-rw-r--r--src/gs-lock-plug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index d4b2a7b..09aa05c 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -231,7 +231,7 @@ do_user_switch (GSLockPlug *plug)
g_error_free (error);
}
}
- else if (process_is_running ("gdm") || process_is_running("gdm3"))
+ else if (process_is_running ("gdm") || process_is_running("gdm3") || process_is_running("gdm-binary"))
{
/* GDM */
command = g_strdup_printf ("%s %s",
@@ -1291,7 +1291,7 @@ gs_lock_plug_set_switch_enabled (GSLockPlug *plug,
/* MDM */
gtk_widget_show (plug->priv->auth_switch_button);
}
- else if (process_is_running ("gdm") || process_is_running("gdm3"))
+ else if (process_is_running ("gdm") || process_is_running("gdm3") || process_is_running("gdm-binary"))
{
/* GDM */
gtk_widget_show (plug->priv->auth_switch_button);