On 25/01/2025 04:58, Roger Price wrote:
That works for me too, but not in cron.

Have you considered systemd.timer(5) in *user* session instead of cron job? It should alleviate issues with missed environment variables.

There was a thread with discussion how to execute a process in user session from system context. It might give some ideas. A message from it:

Max Nikulin. Re: Change suspend type from kde menu.
Sun, 7 Jan 2024 12:44:31 +0700.
<https://lists.debian.org/msgid-search/unddo0$pdh$1...@ciao.gmane.io>

Reply via email to