:: Re: [DNG] running script on eudev e…
Top Page
Delete this message
Reply to this message
Author: Antonio Trkdz.tab
Date:  
To: alessandroselli
CC: [DNG]
Subject: 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