Further improve kdesudo message to match macOS
This commit is contained in:
parent
8d02007e4b
commit
691c1d7eae
1 changed files with 3 additions and 2 deletions
5
index.js
5
index.js
|
@ -94,9 +94,10 @@ function Linux(instance, end) {
|
|||
var command = [];
|
||||
command.push('"' + EscapeDoubleQuotes(binary) + '"');
|
||||
if (/kdesudo/i.test(binary)) {
|
||||
var reason = 'wants to make changes. Type your password to allow this.';
|
||||
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('--');
|
||||
|
|
Loading…
Reference in a new issue