summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Vlahavas <[email protected]>2016-10-19 23:42:13 +0300
committerGeorge Vlahavas <[email protected]>2016-10-19 23:42:13 +0300
commit93acfd028369e921997e91e3d8b4e11c394fb783 (patch)
tree18151764454e96936c9db52c4f611bd28ba246b1
parent15d98b9835333ba174687b4ec58eae7bcc7d94e2 (diff)
downloadmate-screensaver-93acfd028369e921997e91e3d8b4e11c394fb783.tar.bz2
mate-screensaver-93acfd028369e921997e91e3d8b4e11c394fb783.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);