Improve kdesudo message to match macOS

This commit is contained in:
Joran Dirk Greef 2019-06-01 10:14:34 +02:00
parent e3706a69df
commit 2ece63fdc1

View file

@ -94,7 +94,7 @@ function Linux(instance, end) {
var command = []; var command = [];
command.push('"' + EscapeDoubleQuotes(binary) + '"'); command.push('"' + EscapeDoubleQuotes(binary) + '"');
if (/kdesudo/i.test(binary)) { if (/kdesudo/i.test(binary)) {
var reason = 'needs administrative privileges. Please enter your password.'; 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('--'); command.push('--');
} else if (/pkexec/i.test(binary)) { } else if (/pkexec/i.test(binary)) {