changeset 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 66f6361fba1b
children ca89cf228a5b
files ui/installwrapper.cpp ui/mainwindow.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ui/installwrapper.cpp	Fri Aug 29 17:55:28 2014 +0200
+++ b/ui/installwrapper.cpp	Fri Aug 29 17:56:06 2014 +0200
@@ -159,7 +159,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 << cinstProcInfo.absoluteFilePath() << parameters;
         installerProcess.setArguments(sudoParams);
--- 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/