diff ui/mainwindow.cpp @ 987:b8ae69bcc540

Use pkexec instead of gksudo. Gksudo was deprecated and replaced by pkexec
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 29 Aug 2014 17:56:06 +0200
parents c80777457133
children 8fb1b912fd8e
line wrap: on
line diff
--- a/ui/mainwindow.cpp	Fri Aug 29 17:55:28 2014 +0200
+++ b/ui/mainwindow.cpp	Fri Aug 29 17:56:06 2014 +0200
@@ -337,7 +337,7 @@
     bool use_sudo = is_admin() && is_system_install();
     if (use_sudo) {
         QStringList sudoPrograms;
-        sudoPrograms << "gksudo" << "kdesudo" << "sudo";
+        sudoPrograms << "pkexec" << "kdesudo" << "sudo";
         QStringList sudoParams;
         sudoParams << filePath + " " + parameters.join(" ");
 

http://wald.intevation.org/projects/trustbridge/