Prefer kdesudo to pkexec for a better prompt

This commit is contained in:
Joran Dirk Greef 2016-06-30 18:19:21 +02:00
parent 2c29ce4890
commit 3a0aef7b53

View file

@ -140,7 +140,7 @@ function LinuxBinary(instance, end) {
var index = 0; var index = 0;
// We used to prefer gksudo over pkexec since it enabled a better prompt. // We used to prefer gksudo over pkexec since it enabled a better prompt.
// However, gksudo cannot run multiple commands concurrently. // However, gksudo cannot run multiple commands concurrently.
var paths = ['/usr/bin/pkexec', '/usr/bin/kdesudo']; var paths = ['/usr/bin/kdesudo', '/usr/bin/pkexec'];
function test() { function test() {
if (index === paths.length) { if (index === paths.length) {
return end(new Error('Unable to find pkexec or kdesudo.')); return end(new Error('Unable to find pkexec or kdesudo.'));