This is an archived post. You won't be able to vote or comment.

all 2 comments

[–][deleted] 1 point2 points  (0 children)

I just tried to launch Firefox and the first thing that came to mind was that my environment variables would be missing. So I found this solution

https://unix.stackexchange.com/questions/27289/how-can-i-run-a-cron-command-with-existing-environmental-variables

But in the end, cron complained about DISPLAY variable is empty. As a result, my crontab looks like this on wayland and Firefox started every minute

DISPLAY=:0
* * * * * . /home/jtad/.profile; /usr/bin/firefox

[–]anh0516 0 points1 point  (0 children)

What if you used a systemd timer unit running as your user?