Prefer kdesudo to pkexec for a better prompt
This commit is contained in:
parent
2c29ce4890
commit
3a0aef7b53
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -140,7 +140,7 @@ function LinuxBinary(instance, end) {
|
|||
var index = 0;
|
||||
// We used to prefer gksudo over pkexec since it enabled a better prompt.
|
||||
// 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() {
|
||||
if (index === paths.length) {
|
||||
return end(new Error('Unable to find pkexec or kdesudo.'));
|
||||
|
|
Loading…
Reference in a new issue