File mate-system-monitor-xdgsu.patch of Package mate-system-monitor

--- a/src/procman_gksu.cpp
+++ b/src/procman_gksu.cpp
@@ -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);
         return FALSE;
     }
 
-    g_debug ("gksu did fine\n");
+    g_debug ("xdg-su did fine\n");
     return TRUE;
 }
openSUSE Build Service is sponsored by