Re: false udev event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 21 Nov 2010 09:27:21 -0500
Phillip Susi <psusi@xxxxxxxxxx> wrote:

> 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"?
> 

OH! Now I get the point. Thanks a lot for pointing it out. many many thanks.  Can you suggest any modification ?

yes it is ENV{ID_CLASS}=="mouse"


Thanks

-- 
_____________________________________________________________________________
"Programming today is a race between software engineers striving to build 
bigger and better idiot-proof programs and the universe trying to produce 
bigger and\better idiots. So far, the universe is winning."
     ::::::Richard Cook
_____________________________________________________________________________

***************************************************************************************
Disclaimer : The information contained in this Message is confidential and 
intended only for the use of the individual or entity identified. If the 
reader of this message is not the intended recipient, any dissemination, 
distribution or copying of the information contained in this message is 
strictly prohibited. If you received this message in error, please notify the 
sender immediately
***************************************************************************************

--
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


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux