:: Re: [DNG] running script on eudev e…
Etusivu
Poista viesti
Vastaa
Lähettäjä: Antonio Trkdz.tab
Päiväys:  
Vastaanottaja: alessandroselli
Kopio: [DNG]
Aihe: Re: [DNG] running script on eudev event
Hi,

Thanks for your help.

> How are you running the echo command from the udev rule?


ATTRS{idVendor}=="XXXX", ATTRS{idProduct}=="XXXX", ACTION=="add",
RUN+="/bin/echo 'message' >> /full/path_to/log_file.log"

they do not have the DISPLAY variable initialized and do not have the
> appropriate session Xauthority cookies set.


I have tried this also with:
DISPLAY=":0.0"
HOME=/home/antoniotrkdz
XAUTHORITY=$HOME/.Xauthority
export DISPLAY XAUTHORITY HOME
in the script, I don't know if they are correct, however it didn't work.

A