Improve kdesudo arguments to match macOS

This commit is contained in:
Joran Dirk Greef 2019-06-01 10:15:50 +02:00
parent 2ece63fdc1
commit 4da9ecb572

View file

@ -96,6 +96,7 @@ function Linux(instance, end) {
if (/kdesudo/i.test(binary)) { if (/kdesudo/i.test(binary)) {
var reason = 'wants to make changes. Type your password to allow this.'; var reason = 'wants to make changes. Type your password to allow this.';
command.push('--comment', '"' + instance.options.name + ' ' + reason + '"'); command.push('--comment', '"' + instance.options.name + ' ' + reason + '"');
command.push('-d'); // Do not show the command to be run in the dialog.
command.push('--'); command.push('--');
} else if (/pkexec/i.test(binary)) { } else if (/pkexec/i.test(binary)) {
command.push('--disable-internal-agent'); command.push('--disable-internal-agent');