Okay as far as my searches go, I haven't found this question posed online... Has anyone else ran into issues with the screenshot program scrot not working correctly with Ubuntu 22.04?
Currently, the program "works" but only screenshots a black screen, with no error output.
I have even tried exporting the display window just in case with the same issue.
export DISPLAY=:0; scrot test.png
The problem is that
scrot
is specific toXorg
, and the newer Ubuntu updates use Wayland by default. If you need to usescrot
, switch to using Xorg instead of Wayland. Otherwise, check out other screenshot tools to see if any of them work for you.