-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notification not showing on Linux when a title is provided #69
Comments
Additional info about environment
|
@naholyr I am facing the same issue while using node-growl with Mocha on
I confirm that notify-send responds with |
@hmshwt Feel free to make a PR |
deiga
pushed a commit
that referenced
this issue
Jan 28, 2018
* Remove cmd.msg from args when using notify-send Fixes Issue#69 #69 On linux notify-send responds with 'Invalid number of options' because of an extra empty '' argument introduced by cmd.msg * Fix options.sticky argument when using notify-send When using the sticky option with notify-send, it interprets '-t 0' as a single argument. To resolve that '-t' and '0' are sent as separate arguments. - Executing the following command "notify-send '-t 0' 'Email Client' '5 new emails' " - results in "Cannot parse integer value “Email Client” for -t" * Log cmd and args to stderr for easier debugging
Fixed in 1.10.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue
When using
mocha --growl
on my Linux distribution using notify-send, notifications do not appear.I've looked into the executed command, and it tries to run
notify-send '-i' '/…/node_modules/mocha/images/ok.png' '--hint=int:transient:1' 'Passed' '' '4 tests passed in 1236ms'
which, when run directly into my terminal, responds withInvalid number of options
. The empty string in the middle got my attention, and it seems to be actually the cause of this bug as it works fine without it.The solution?
In the code I find those lines:
I don't get why
cmd.msg
ANDmsg.replace(…)
are both added whilenotify-send
only takes onebody
argument (see below). It works fine when I removeargs.push(cmd.msg)
, which is my proposed solution (but there may be side-effects?).Environment information
notify-send --version
lsb_release -a
notify-send --help
The text was updated successfully, but these errors were encountered: