Further improve kdesudo message to match macOS

This commit is contained in:
Joran Dirk Greef 2019-06-01 11:40:35 +02:00
parent 8d02007e4b
commit 691c1d7eae

View file

@ -94,9 +94,10 @@ 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 = 'wants to make changes. Type your password to allow this.';
command.push( command.push(
'--comment', '"' + instance.options.name + ' ' + reason + '"' '--comment',
'"' + instance.options.name + ' wants to make changes. ' +
'Enter your password to allow this."'
); );
command.push('-d'); // Do not show the command to be run in the dialog. command.push('-d'); // Do not show the command to be run in the dialog.
command.push('--'); command.push('--');