I have a program I want to run under systemctl/systemd because I want it automatically restarted whenever it fails.
Google AI says to use
After=graphical-session.target
but it starts it before the desktop appears.
Alternatively, is there a good way to tell whether the desktop is running?
Google AI says to use
After=graphical-session.target
but it starts it before the desktop appears.
Alternatively, is there a good way to tell whether the desktop is running?
Statistics: Posted by jlearman — Fri Jan 16, 2026 2:07 am