Merge pull request #23 from jviotti/fix/option-params-gksudo

Don't keep parsing command options in gksudo and kdesudo
This commit is contained in:
Joran Dirk Greef 2016-05-21 08:45:20 +02:00
commit b02973e8b7

View file

@ -118,6 +118,9 @@ function Linux(instance, end) {
command.push('--sudo-mode');
var description = EscapeDoubleQuotes(instance.options.name);
command.push('--description="' + description + '"');
command.push('--');
} else if (/kdesudo/i.test(binary)) {
command.push('--');
} else if (/pkexec/i.test(binary)) {
command.push('--disable-internal-agent');
}