Closed IoTCARE closed 3 years ago
i have a complement for this.
when i try to run
sudo python3 mycode.py
this error apears
but with only
python3 mycode.py
it works
but i need to run my code in sudo to get other system infos.
This is not a pyscreenshot bug. It seems to be a permission problem.
First try to make it work with scrot only.
Search for scrot
and giblib error: Can't open X display. It *is* running, yeah?
error message.
For example this site: https://ubuntuforums.org/archive/index.php/t-1847591.html
recommends:
*/5 * * * * env DISPLAY=:0 XAUTHORITY=/var/run/gdm /root/scrot/scrot.sh
im having this error:
my code:
if only happen when my raspibian executes it from crontab
( yes i have desktop mode for raspibian )