Merge pull request #26 from jviotti/kdesudo-comment
Pass the `--comment` option to kdesudo to improve dialog
This commit is contained in:
commit
2c29ce4890
1 changed files with 2 additions and 0 deletions
2
index.js
2
index.js
|
@ -116,6 +116,8 @@ function Linux(instance, end) {
|
|||
var command = [];
|
||||
command.push('"' + EscapeDoubleQuotes(binary) + '"');
|
||||
if (/kdesudo/i.test(binary)) {
|
||||
var reason = 'needs administrative privileges. Please enter your password.';
|
||||
command.push('--comment', '"' + instance.options.name + ' ' + reason + '"');
|
||||
command.push('--');
|
||||
} else if (/pkexec/i.test(binary)) {
|
||||
command.push('--disable-internal-agent');
|
||||
|
|
Loading…
Reference in a new issue