:: Re: [DNG] running script on eudev e…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Antonio Trkdz.tab
Ημερομηνία:  
Προς: alessandroselli
Υ/ο: [DNG]
Αντικείμενο: 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