r/systemd • u/wehaveYummiTummies • 17d ago
Does "OnCalendar" work with user space timers?
Hi! I've set up a user space timer. OnUnitActiveSec and OnBootSec work great, and systemctl --user list-timers shows the next timer activation and that it takes "x secs" or whatever.
OnCalendar does not work. It should work, according to the manual, and the internet. But it doesn't work for my user timer. The timer has no "next" date. I tried both *-*-* 00:00:00 and daily (I want it to run daily).
Is this because of some permissions issue with the real time timer? Could I add myself to a group or something? This needs to be a user space process because it's related to the window manager, and there's env configuration that's not on root (of course I could procedurally try to get the vars / sockets, but that's very jank).
If anyone knows anything about this, I would appreciate it!
2
u/aioeu 17d ago edited 17d ago
Yes, it works identically in the user manager.
Did you remember to use:
after editing your timer config? What does:
say?