[PATCH 2 of 3] Use pkexec instead of gksudo
Wald Commits
scm-commit at wald.intevation.org
Fri Aug 29 18:41:53 CEST 2014
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1409327766 -7200
# Node ID b8ae69bcc5402a9378ec2956e70b83d305ddd54f
# Parent 66f6361fba1be14ff8128a291bbeb288cbd2859e
Use pkexec instead of gksudo.
Gksudo was deprecated and replaced by pkexec
diff -r 66f6361fba1b -r b8ae69bcc540 ui/installwrapper.cpp
--- 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);
diff -r 66f6361fba1b -r b8ae69bcc540 ui/mainwindow.cpp
--- 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(" ");
More information about the Trustbridge-commits
mailing list