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:
commit
b02973e8b7
1 changed files with 3 additions and 0 deletions
3
index.js
3
index.js
|
@ -118,6 +118,9 @@ function Linux(instance, end) {
|
||||||
command.push('--sudo-mode');
|
command.push('--sudo-mode');
|
||||||
var description = EscapeDoubleQuotes(instance.options.name);
|
var description = EscapeDoubleQuotes(instance.options.name);
|
||||||
command.push('--description="' + description + '"');
|
command.push('--description="' + description + '"');
|
||||||
|
command.push('--');
|
||||||
|
} else if (/kdesudo/i.test(binary)) {
|
||||||
|
command.push('--');
|
||||||
} else if (/pkexec/i.test(binary)) {
|
} else if (/pkexec/i.test(binary)) {
|
||||||
command.push('--disable-internal-agent');
|
command.push('--disable-internal-agent');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue