Skip to content
Permalink
Browse files

Pass the `--comment` option to kdesudo to improve dialog

Otherwise, `kdesudo` also displays the command as the dialog title,
making it very ugly and unfriendly.

Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
  • Loading branch information...
Juan Cruz Viotti
Juan Cruz Viotti committed Jun 16, 2016
1 parent 4ee9e87 commit 17f45ebef31afd9fb6260f7c2950fea4aab5ae4d
Showing with 2 additions and 0 deletions.
  1. +2 −0 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');

0 comments on commit 17f45eb

Please sign in to comment.
You can’t perform that action at this time.