Closed parasbhanot closed 3 years ago
For anyone who is facing same issue simply set the Display Environment variable in your unit file as given below :
[Unit] Description=Keebie service
[Service] Type=simple Environment=DISPLAY=:0 ExecStart=/usr/bin/python3 /home/parasbhanot/Keebie/keebie.py
[Install] WantedBy=multi-user.target
Hi,
I am trying to run keebie.py using as systemd service so that i can turn the script on and off using systemctl command but for some reasons keebie.py refuse to work with systemd but if i run the keebie.py from the terminal emulator everthing works as expected
The keeebie service seems to be working but it is not executing any command that i have defined in default.json.
i have created the keebie service with the following content :
Please note that i have also created the udev rule for my second keyboard so it cannot not be a permission issue.
if i disconnect my second keyboard and then check the status of the keebie service i get the following :
i have also cheked the jorunal logs . it seems script is working but it is not executing xdotool when it is run as service which is strange but simple echo commands are working fine as given below.
My default.json file :
i am running out of ideas .
has anyone tested keebie.py with systemd ?