2016-03-21 21:12:27 +01:00
|
|
|
--- a/src/procman_gksu.cpp
|
|
|
|
+++ b/src/procman_gksu.cpp
|
2016-04-09 17:21:42 +02:00
|
|
|
@@ -10,18 +10,18 @@ procman_gksu_create_root_password_dialog
|
|
|
|
gboolean success;
|
|
|
|
GError *error = NULL;
|
|
|
|
|
|
|
|
- command_line = g_strdup_printf ("gksu '%s'", command);
|
|
|
|
+ command_line = g_strdup_printf ("xdg-su -c '%s'", command);
|
|
|
|
success = g_spawn_command_line_sync (command_line, NULL, NULL, NULL, &error);
|
|
|
|
g_free (command_line);
|
|
|
|
|
|
|
|
if (!success) {
|
|
|
|
- g_critical ("Could not run gksu '%s' : %s\n",
|
|
|
|
+ g_critical ("Could not run xdg-su -c '%s') : %s\n",
|
|
|
|
command, error->message);
|
|
|
|
g_error_free (error);
|
2016-03-21 21:12:27 +01:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2016-04-09 17:21:42 +02:00
|
|
|
- g_debug ("gksu did fine\n");
|
|
|
|
+ g_debug ("xdg-su did fine\n");
|
2016-03-21 21:12:27 +01:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|