This is the content of the /etc/udev/80-hds.rules file:
Code: Select all
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="/usr/bin/add.sh"
Code: Select all
#!/bin/sh
set -x
export DISPLAY=:0.0
su root -c "/usr/bin/my-program" &
When executed from the terminal or while clicking on, add.sh works normally.
Please, what is lacking?
Thanks.
Cordialement.