On Thu, Mar 11, 2010 at 09:55, Salvatore De Paolis <iwkse@xxxxxxxxxxxxxx> wrote: > i'm really new with udev and i was following the writing udev rules to > understand how it works. > > What i wanted to do, is to mount and execute a script once a usb device is > plugged. > To test this, i found the line: > > KERNEL=="sd*", ACTION=="add", RUN+="/usr/bin/notify-send test test" > > I wrote this in a file called 90-test.rules under /etc/udev/rules.d and > restarted udev plugged the usb device and nothing happened. Udev runs at the system-level as root, it can not talk to your user session where the notification would appear. You have to subscribe to events from your user session, and not put system-wide rules into udev, to get events in your session. Kay -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html