[gnome-system-monitor] Try running kill/renice with policykit first, if PK is not available, fall back to gksu/gnomesu. htt



commit 971b3c704dea49b22c1038f200933c5b3b35ece1
Author: Robert Roth <robert roth off gmail com>
Date:   Sat Dec 8 02:36:36 2012 +0200

    Try running kill/renice with policykit first, if PK is not available,
    fall back to gksu/gnomesu.
    https://bugzilla.gnome.org/show_bug.cgi?id=685294

 src/procdialogs.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/procdialogs.cpp b/src/procdialogs.cpp
index fd0f205..691a161 100644
--- a/src/procdialogs.cpp
+++ b/src/procdialogs.cpp
@@ -616,12 +616,12 @@ procdialog_create_root_password_dialog(ProcmanActionType type,
 
     procman_debug("Trying to run '%s' as root", command);
 
-    if (procman_has_gksu())
+    if (procman_has_pkexec())
+        ret = procman_pkexec_create_root_password_dialog(command);
+    else if (procman_has_gksu())
         ret = procman_gksu_create_root_password_dialog(command);
     else if (procman_has_gnomesu())
         ret = procman_gnomesu_create_root_password_dialog(command);
-    else if (procman_has_pkexec())
-        ret = procman_pkexec_create_root_password_dialog(command);
 
     g_free(command);
     return ret;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]