I am using Debian and under /lib/udev/rules.d/ I created a file named 81-my.rules Inside the file there are two lines ACTION==add, SUBSYSTEM==usb, DRIVER==usb, RUN+=mousepadACTION==remove, SUBSYSTEM==usb, DRIVER==usb, RUN+=mousepadAll they do is when any usb device is attached/detached the application mousepad opens. I restart the pc attach a usb device but nothing happens. 
Cannot execute udev rule
debian;udev