I've been trying to get my udev rule to work for a few hours now and it's just not working. The rule is supposed to launch a new terminal and run my script. I've tried running a script from the udev rule to open a new terminal first, but also to run the new terminal straight from the udev rule. Neither is working. Oddly enough running mkdir does work using the same rules which leads me to believe I'm doing something wrong elsewhere.
This is my udev rule:
ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", RUN+="/usr/bin/gnome-terminal -x /home/[user]/Desktop/script.sh"
Running tail -f /var/log/syslog shows the script failing with exit code 1, which doesn't really help. Any suggestions would be much appreciated.