On 11/20/2010 01:10 PM, J. Bakshi wrote:
```````````````````````````````````` ACTION=="add", SUBSYSTEM=="input", ENV{ID_CLASS}="mouse", ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/joy/.Xauthority" RUN+="/usr/bin/synclient TouchpadOff=1", RUN+="/bin/su joy -c 'DISPLAY=:0.0 notify-send %k; killall syndaemon ' "
This rule is fundamentally broken. You are explicitly setting the environment to point to your .Xauthority file and the first instance of an X server, which of course, assumes that you are logged into that X instance at the time. When this rule is processed, that is almost certainly not going to be true.
It also will run repeatedly for every input device in the system. Maybe you meant ENV{ID_CLASS}=="mouse" instead of ENV{ID_CLASS}="mouse"?
-- 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