Closed davidhaley closed 2 years ago
Could you try with a more minimalist config (see https://github.com/soywod/himalaya/wiki/Usage:msg:notify) to see if it works for you? Try also to set directly the himalaya notify
inside the systemd service to see. Let me know!
Thank you for your help!
I receive a notification if I run himalaya notify
directly in the terminal and send myself an email.
However, I used the example service and stored it in the example location, set the executable bit, and I receive a (code=exited, status=203/EXEC)
from systemd upon starting the service.
[Unit]
Description=Himalaya new messages notifier
[Service]
ExecStart=himalaya notify
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
This isn't related to himalaya, so we can close this issue if you want. I will tinker and try to figure it out (I can post the solution here once I've found it).
Cheers!
Figured it out, I needed to add the full path to the executable.
[Unit]
Description=Himalaya new messages notifier
[Service]
ExecStart=/home/dhw/.local/bin/himalaya notify
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
It's working now. Thank you!
Awesome, glad to hear you made it work! Feel free to edit the wiki if you find it pertinent (for eg adding an absolute path to himalaya) to prevent future users deeling with the same issue!
I set up a systemd service to run
himalaya notify
; however, I don't receive a notification (even though the logs mention that it is running the command). If I run/usr/bin/notify-send subject body
I receive a notification.Here is the service:
And the script that it runs:
Thank you.