summaryrefslogtreecommitdiff
path: root/capplets/accessibility/at-properties/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/accessibility/at-properties/main.c')
-rw-r--r--capplets/accessibility/at-properties/main.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/capplets/accessibility/at-properties/main.c b/capplets/accessibility/at-properties/main.c
index bfcdede9..11e91bd3 100644
--- a/capplets/accessibility/at-properties/main.c
+++ b/capplets/accessibility/at-properties/main.c
@@ -44,13 +44,14 @@ create_builder (void)
gtk_image_set_from_file (GTK_IMAGE (object),
PIXMAPDIR "/at-support.png");
- prog = g_find_program_in_path ("mdmsetup");
+ prog = g_find_program_in_path ("lightdm-gtk-greeter-settings-pkexec");
if (prog == NULL) {
- object = gtk_builder_get_object (builder,
- "login_button");
- gtk_widget_hide (GTK_WIDGET (object));
+ prog = g_find_program_in_path ("mdmsetup");
+ if (prog == NULL) {
+ object = gtk_builder_get_object (builder, "login_button");
+ gtk_widget_hide (GTK_WIDGET (object));
+ }
}
-
g_free (prog);
} else {
g_warning ("Could not load UI: %s", error->message);
@@ -83,7 +84,13 @@ cb_mouse_preferences (GtkDialog *dialog, gint response_id)
static void
cb_login_preferences (GtkDialog *dialog, gint response_id)
{
- g_spawn_command_line_async ("mdmsetup", NULL);
+ gchar *prog;
+ prog = g_find_program_in_path ("lightdm-gtk-greeter-settings-pkexec");
+ if (prog == NULL) {
+ prog = g_find_program_in_path ("mdmsetup");
+ }
+ g_spawn_command_line_async (prog, NULL);
+ g_free(prog);
}
/* get_session_bus(), get_sm_proxy(), and do_logout() are all