Hi community,
I am having a problem of accessing xdotool when it run as service. I created a service where I used xdotool to capture some activity. xdotool is used to access active window name. I tried running as a service but error saying current window is null. Whoever the logged in user is there, I have to capture logged in user activity. I am able to capture activity when I run it manually through terminal but when I run as service( under control of local user ) not able to capture activity. I have tried 2 methods to capture activity of logged in user.
Method 1 -- Created service in ubuntu. Service is running here but not able to capture activity. Error saying current window is null. Not able to capture activity when logged in as user.
Method 2 -- Created per user service. Not able to run service by using this method.
I was stuck at this point. I tried different methods to resolve the problem. Please suggest me in this regard to capture activity of every single user.
How can I make xdotool (Accessing current window name) available for every single user to capture current logged in user activity?
Thanks in advance
Possible errors
Current window is null.
useful links
Creating service for ubuntu
https://medium.com/@benmorel/creatin...d-611b5c8b91d6
Creating service per user
https://wiki.archlinux.org/title/Sys...r#How_it_works
xdotool
https://github.com/jordansissel/xdot...0of%20desktops.