You are not logged in.
Hello everyone!
I have a udev rule like this:
ACTION=="add", RUN+="/bin/sh -c 'DISPLAY=:0 /usr/bin/notify-send In'"
ACTION=="remove", RUN+="/bin/sh -c 'DISPLAY=:0 /usr/bin/notify-send Out'"[lucas@ironhide ~]:% ls -l /etc/udev/rules.d/99-local.rules [0]
-rwxr-xr-x 1 root root 144 Jul 26 02:31 /etc/udev/rules.d/99-local.rulesBut not working!
Anyone can help?
Last edited by sistematico (2012-07-31 11:52:16)
Offline
You need to specify the usb subsystem in the rule - there are various examples on the udev wiki page.
Offline
Maybe you can use a "framework", udisks-glue-git or similar so you don't need edit systemwide files.
Offline
Thank you all!
----------------------- EDIT -----------------------
Solved with udisks-glue (thanks uzsolt) + sysnotify (thanks grawity@freenode), and thank you tomk to point new direction.
https://gist.github.com/3196257
https://gist.github.com/1338329
Last edited by sistematico (2012-07-29 05:39:50)
Offline
Offline