Improve kdesudo message to match macOS
This commit is contained in:
parent
e3706a69df
commit
2ece63fdc1
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue