Commit graph

84 commits

Author SHA1 Message Date
Joran Dirk Greef
201dc8cf4f 6.0.2 2016-07-21 10:38:17 +02:00
Joran Dirk Greef
beebd9efee Update explanation of Linux behavior 2016-07-21 10:38:07 +02:00
Joran Dirk Greef
6de1e859b1 6.0.1 2016-07-15 18:27:38 +02:00
Joran Dirk Greef
16bdf15dfc Update keywords 2016-07-15 18:27:29 +02:00
Joran Dirk Greef
1397993ec6 6.0.0 2016-07-15 17:13:29 +02:00
Joran Dirk Greef
a57487d444 Add support for Windows 2016-07-15 17:13:03 +02:00
Joran Dirk Greef
fd775d735c Add .jshintrc to .gitignore 2016-07-15 17:09:51 +02:00
Joran Dirk Greef
a9511da6c2 5.1.0 2016-06-30 18:19:51 +02:00
Joran Dirk Greef
3a0aef7b53 Prefer kdesudo to pkexec for a better prompt 2016-06-30 18:19:21 +02:00
Joran Dirk Greef
2c29ce4890 Merge pull request #26 from jviotti/kdesudo-comment
Pass the `--comment` option to kdesudo to improve dialog
2016-06-29 08:40:22 +02:00
Juan Cruz Viotti
17f45ebef3 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>
2016-06-28 17:16:27 -04:00
Joran Dirk Greef
4ee9e874be 5.0.3 2016-06-07 18:58:33 +02:00
Joran Dirk Greef
1acae8af6d Merge pull request #25 from jviotti/fix/stop-parsing-command-options-sudo
Don't keep parsing command options in sudo
2016-06-07 18:57:37 +02:00
Juan Cruz Viotti
37996169ed Don't keep parsing command options in sudo
This commit is very similar to 3f6c485. It implements the fix to the
same problem for `sudo` when the module makes an attempt to determine if
the dialog needs to be shown or not.

Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
2016-06-07 12:37:43 -04:00
Joran Dirk Greef
b87b985bc3 5.0.2 2016-06-04 13:24:53 +02:00
Joran Dirk Greef
9e63556ad0 Remove comma 2016-06-04 13:24:44 +02:00
Joran Dirk Greef
bef88907c7 5.0.1 2016-06-04 13:23:51 +02:00
Joran Dirk Greef
013ec59117 Remove mention of 2016-06-04 13:23:42 +02:00
Joran Dirk Greef
d087fb9fd7 5.0.0 2016-06-04 13:17:27 +02:00
Joran Dirk Greef
1e11485bf4 Remove support for gksudo (gksudo breaks when used concurrently) 2016-06-04 13:17:14 +02:00
Joran Dirk Greef
69f6576045 4.0.1 2016-05-21 08:46:05 +02:00
Joran Dirk Greef
b02973e8b7 Merge pull request #23 from jviotti/fix/option-params-gksudo
Don't keep parsing command options in gksudo and kdesudo
2016-05-21 08:45:20 +02:00
Juan Cruz Viotti
3f6c485c4d Don't keep parsing command options in gksudo/kdesudo
When `gksudo` is detected, this module executes the following command:

```
"/usr/bin/gksudo" --preserve-env --sudo-mode --description="MyApp" <COMMAND>
```

Consider the following command:

```
/home/jviotti/Projects/etcher/node_modules/electron-prebuilt/dist/electron /home/jviotti/Projects/etcher/lib/src/run-child-writer.js lib/start.js /home/jviotti/Downloads/CorePlus-current.iso --robot --drive /dev/sdb --unmount --check
```

Given that the command I'm running contains option arguments, it seems
like `gksudo` tries to interpret the options to my command as `gksudo`
options, failing with errors like this one:

```
/usr/bin/gksudo: unrecognized option '--robot'
```

To prevent this from happening, we can tell `gksudo` to stop parsing
options with the `--` identifier.

The same error happens with `kdesudo`.

Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
2016-05-20 13:15:38 -04:00
Joran Dirk Greef
41be5f72f0 4.0.0 2016-05-18 12:53:01 +02:00
Joran Dirk Greef
e428e0b50a Merge branch 'master' of https://github.com/jorangreef/sudo-prompt 2016-05-18 12:52:04 +02:00
Joran Dirk Greef
bd6c099453 Fix applet path to handle spaces 2016-05-18 12:51:54 +02:00
Joran Dirk Greef
5803d0155b Merge pull request #21 from jviotti/feat/preserve-environment
Preserve user environment if possible.
2016-05-18 08:53:56 +02:00
Juan Cruz Viotti
4a5baf5716 Preserve user environment
Some child processes executed with this module might benefit from being
able to read their parent process environment variables.

Fixes: https://github.com/jorangreef/sudo-prompt/issues/20
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
2016-05-17 13:13:37 -04:00
Joran Dirk Greef
d3cb072cff 3.1.0 2016-04-16 12:33:55 +02:00
Joran Dirk Greef
4a118a0c9c Preserve current working directory on OS X
This improves reliability for commands which expect the current working
directory to be preserved. This may not always be the case on Linux as yet.
2016-04-16 12:29:30 +02:00
Joran Dirk Greef
50147f9376 3.0.1 2016-04-15 15:40:00 +02:00
Joran Dirk Greef
7ae6847997 Update README 2016-04-15 15:39:48 +02:00
Joran Dirk Greef
b579064b59 3.0.0 2016-04-15 13:20:50 +02:00
Joran Dirk Greef
0b5c7d7361 Add support for tty_tickets on OS X (and major breaking changes).
Add support for `tty_tickets` on OS X.
Ensure all line lengths are less than 80 characters.
Fix shell commands to use absolute path (e.g. `/bin/rm`, `/usr/bin/defaults`).
Fix `options.icns` to work with asar packages.
Fix internal method names to reduce chance of a clash with local variables.
Remove `options.onChildProcess()` (no longer possible to support).
Remove batching of password prompts on OS X.
Remove deprecated `setName()`.
Remove deprecated `touch()`.

Fixes: https://github.com/jorangreef/sudo-prompt/issues/13
2016-04-15 13:11:23 +02:00
Joran Dirk Greef
5052cb8401 2.3.0 2016-02-16 08:54:05 +02:00
Joran Dirk Greef
52e86354ba Merge pull request #12 from jviotti/doc/timestamp-invalidation
Document how to invalidate the sudo time stamp file
2016-02-09 15:25:22 +02:00
Juan Cruz Viotti
8336d3baa4 Document how to invalidate the sudo time stamp file
Fixes: https://github.com/jorangreef/sudo-prompt/issues/11
2016-02-09 09:16:12 -04:00
Joran Dirk Greef
1ae88ad24c 2.2.0 2016-02-09 09:30:39 +02:00
Joran Dirk Greef
fe26a8a159 Package applet.app as a base64 zip file within index.js to fix issue with asar files 2016-02-09 09:30:04 +02:00
Joran Dirk Greef
b2a74b347b 2.1.1 2016-01-01 15:52:17 +02:00
Joran Dirk Greef
d08ec680f3 Remove dependency on locale language when detecting sudo error 2016-01-01 15:51:58 +02:00
Joran Dirk Greef
210a928248 2.1.0 2015-11-26 12:12:37 +02:00
Joran Dirk Greef
f163c812cd Document stdout and stderr arguments to callback in usage example 2015-11-26 12:12:30 +02:00
Joran Dirk Greef
f91a0a9b16 Add options.onChildProcess 2015-11-26 12:11:57 +02:00
Joran Dirk Greef
51c17b50d7 2.0.2 2015-11-19 10:04:17 +02:00
Joran Dirk Greef
7b58ff8ffb Emphasize usage for non-graphical terminal commands only 2015-11-19 10:03:42 +02:00
Joran Dirk Greef
52f07e3526 Update README.md 2015-11-17 15:57:33 +02:00
Joran Dirk Greef
104a5970e9 2.0.1 2015-11-17 15:55:11 +02:00
Joran Dirk Greef
9bc245180a Fix macPrompt to remove hash directory in tmp 2015-11-17 15:54:56 +02:00
Joran Dirk Greef
7765652fa7 Update README.md 2015-11-17 15:54:13 +02:00