7

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

1 Answers1

11

The problem is that scrot is specific to Xorg, and the newer Ubuntu updates use Wayland by default. If you need to use scrot, switch to using Xorg instead of Wayland. Otherwise, check out other screenshot tools to see if any of them work for you.

Esther
  • 3,932