I am using Ubuntu 21.04 under GNOME on Wayland. I want to take the screenshot every minute and save them to a designated folder. The simplest thing I can think of is using
crontab which is available out-of-the-box in Ubuntu. There are only a handful of programs that can take screenshots under GNOME on Wayland – including
flameshot. However despite the fact these programs work from the Ubuntu terminal, they do not work when run in a cron. I guess this problem is specific to Wayland as I was successful in taking screenshot in a cron under GNOME on Xorg using
scrot which is a screenshot program working in X.
I would like to stick to GNOME on Wayland because it has some advantages over X. I would like to know:
- What screenshot software works in crontab under GNOME on Wayland?
- Any workarounds to make
gnome-screenshotwork in crontab?
Thank you so much.