Merge pull request #26 from jviotti/kdesudo-comment

Pass the `--comment` option to kdesudo to improve dialog
This commit is contained in:
Joran Dirk Greef 2016-06-29 08:40:22 +02:00 committed by GitHub
commit 2c29ce4890

View file

@ -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');