Skip to main content

Thread: udev rules


i using udev rules detect removable drives executes script having line:
notify-send "drive detected".
code:
#!/bin/bash notify-send "drive detected"
1.my udev rules perfect.had them checked
2.script getting executed.tested using touch /tmp/test command in script.
3.the script works fine when run manually.
problem?

quote posted jaypatel view post
i using udev rules detect removable drives executes script having line:
notify-send "drive detected".
code:
#!/bin/bash  notify-send "drive detected"
1.my udev rules perfect.had them checked
2.script getting executed.tested using touch /tmp/test command in script.
3.the script works fine when run manually.
problem?
you don't problem is, guess notify-send useful when run script hand, , doesn't happen when it's executed udev.

notify-send? there difference in environment of 2 different executions, display variable or something?


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk udev rules


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support