Mercurial > trustbridge
comparison ui/installwrapper.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 | 216a65d7fc4b |
children | db7e7156c824 |
comparison
equal
deleted
inserted
replaced
986:66f6361fba1b | 987:b8ae69bcc540 |
---|---|
157 | 157 |
158 bool sudo_started = false; | 158 bool sudo_started = false; |
159 bool use_sudo = is_admin() && is_system_install(); | 159 bool use_sudo = is_admin() && is_system_install(); |
160 if (use_sudo) { | 160 if (use_sudo) { |
161 QStringList sudoPrograms; | 161 QStringList sudoPrograms; |
162 sudoPrograms << "gksudo" << "kdesudo" << "sudo"; | 162 sudoPrograms << "pkexec" << "kdesudo" << "sudo"; |
163 QStringList sudoParams; | 163 QStringList sudoParams; |
164 sudoParams << cinstProcInfo.absoluteFilePath() << parameters; | 164 sudoParams << cinstProcInfo.absoluteFilePath() << parameters; |
165 installerProcess.setArguments(sudoParams); | 165 installerProcess.setArguments(sudoParams); |
166 | 166 |
167 foreach (const QString &sProg, sudoPrograms) { | 167 foreach (const QString &sProg, sudoPrograms) { |