-
Notifications
You must be signed in to change notification settings - Fork 23
Feature: Notifications #73
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
Comments
Please check out the manual, the The only problem I see is that you might need to export the |
Thanks, so do I need to export it inside the script or how would you do that? |
I guess something like DISPLAY=:1 notify-send "Hello" is enough, just make sure to export the correct display. |
I have been trying different things and cannot get it going. I tried it the way you said, also setting |
Not really, make sure the script is executable and is actually executed first. |
I was on holiday and am back now. Let me summarize what I tried (unsuccesfully): I am still not able to get the output "test" from my notification daemon... Do you see any mistakes / are you able to get notifications? EDIT: for the record, the mounting/unmounting works just as expected! EDIT 2: I also just tried simply putting a |
There's no output at all, the file descriptors for echo "Hello" > /tmp/check |
Ok this worked, no error and the file was produced. But the notify-send just does not work. I went on reading and stumbled upon some posts seemingly having the same issue with udev rules. The problem seems to be the at startup missing |
This commit makes it a little bit more comfortable to add a custom script for use cases such as in LemonBoy#73. When the variable is empty/undefined `ldm` simply prints `The callback script isn't executable!` but works fine. I am unsure about the exact quoting rules in systemd service files. Maybe the `COMMAND_PATH` should be wrapped in **"** in case of whitespace in path? Tested this with following config: /etc/ldm.conf ```sh MOUNT_OWNER=oli BASE_MOUNTPOINT=/home/oli/Mounts FMASK_DMASK=0177,0077 COMMAND_PATH=/etc/ldm_notify.sh ``` /etc/ldm_notify.sh ```sh #!/bin/sh env DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus /usr/bin/toastify send --icon mount --app-name ldm "$LDM_ACTION" "Mounted $LDM_NODE($LDM_FS) in $LDM_MOUNTPOINT." ```
Hi,
I believe I once asked but maybe I am mistaking. So I was wondering if there is a way to get (custom?) notifications on mount / unmount? I am using the systemd service. If it is possible, I'd like to see a / some simple examples on how to configure it and I guess this would make people start using it easier.
The text was updated successfully, but these errors were encountered: