These days GDM on Debian is running using Wayland, so the classic way of taking a screenshot using the X protocol does not work:
# Sleeping before launching the command allows to switch to the login screen
# before the screen gets actually captured.
#
# Otherwise if the login screen is not visible, only a black image will be
# captured.
sleep 6
sudo -u Debian-gdm\
DISPLAY=:0 \
XAUTHORITY=/var/run/user/109/gdm/Xauthority \
import -display :0 -win root /tmp/GDM-screenshot.png"
Recent comments
23 weeks 3 days ago
38 weeks 11 min ago
38 weeks 13 min ago
38 weeks 2 hours ago
1 year 2 weeks ago
1 year 6 weeks ago
1 year 6 weeks ago
1 year 6 weeks ago
2 years 16 weeks ago
2 years 20 weeks ago