Screenshot not working on Linux: causes and fixes
On Linux, screenshots usually fail because of the desktop environment, Wayland versus X11, an unmapped Print Screen key or a missing portal. Find your desktop first, then work down the checks below.
Start with your desktop's built in tool
Linux has no single screenshot tool, so the right shortcut depends on your desktop.
- GNOME (Ubuntu, Fedora): press Print Screen to open the screenshot and screencast interface. Shift + Print and Alt + Print are common variants for areas and windows.
- KDE Plasma: Spectacle is the built in tool. Press Print Screen to open it.
- Others (XFCE, Cinnamon, MATE, tiling window managers): each has its own tool or none. You may need to install one and bind a key yourself.
If pressing the key does nothing, open your desktop's keyboard shortcut settings and check that a screenshot action is assigned. Another app may have claimed the same shortcut.
Wayland or X11: the cause behind many failures
Many older command line tools, such as scrot and some others, were written for X11. On a Wayland session they may fail, return a black image, or capture nothing. Check which session you are running:
- Open a terminal.
- Run: echo $XDG_SESSION_TYPE
- If it says wayland, use a tool that supports Wayland, or the one built into your desktop.
- If you need an X11 tool, log out and choose an X11 session on the login screen, if your distribution offers one.
On some Wayland setups, third party tools need extra packages or permissions. Check that tool's documentation for your desktop.
Check the key, the folder and the permissions
A few quick tests rule out simple causes:
- Run xev in an X11 session, or use your desktop's key settings, to see whether the Print Screen key is detected at all. Some laptops need Fn pressed too.
- Look in the Pictures folder, often in a Screenshots subfolder. The image may have been saved, just not where you expected.
- Check free disk space with df -h. A full disk blocks new files.
- Check that the target folder exists and you can write to it.
- If the tool is a Flatpak or Snap, it may lack permission to access your Pictures folder or the screen. Check its permissions.
- If browser or app screen sharing fails too, make sure the xdg-desktop-portal package for your desktop is installed and running.
A full system update often fixes portal and shortcut bugs.
A browser fallback that works on any distro
If the system shortcut is broken and you need a result now, ShotBox runs in any browser, with nothing to install. On desktop you can capture the screen from the browser, or paste an image with Ctrl+V, drag a file in or pick one. Browser capture on Linux may depend on the portal setup described above.
The editor offers crop, arrow, box, pen, highlighter, text and pixelate blur. Upload gives you a long random private link that is copied automatically. It is not listed or indexed. You can set it to expire after 1 hour, 1 day, 7 days or 30 days, or delete it at any time. Camera and GPS data are removed from every image.
Linux users can also use the small sync script to save every screenshot into a folder on the computer. If you sign in with Google, a screenshot uploaded from your phone appears on the computer within seconds.
What ShotBox cannot do
ShotBox cannot capture scrolling or full page screenshots, record the screen, copy text from images, or react to a desktop hotkey. It is a web app, so use your system shortcut and then paste. For scrolling capture, Firefox has a built in full page option, and Chrome DevTools can capture a full size screenshot. For screen recording, GNOME's built in tool and recent versions of Spectacle on KDE can record.
Frequently asked questions
Why is my Linux screenshot black or empty?
This often happens when an X11 only tool runs on a Wayland session. Use your desktop's built in tool, or switch to a tool that supports Wayland.
Why does Print Screen do nothing on Linux?
The shortcut may not be assigned, another app may have taken it, or the laptop may need Fn pressed. Check your desktop's keyboard shortcut settings.
Where are Linux screenshots saved?
Usually in the Pictures folder, often in a Screenshots subfolder. Your desktop's tool settings can show or change the location.
How can I tell if I am on Wayland or X11?
Open a terminal and run: echo $XDG_SESSION_TYPE. It prints wayland or x11.
Can I share a Linux screenshot without installing anything?
Yes. Paste or capture it in ShotBox in your browser, blur anything private, and upload to get a private link that can expire after 1 hour, 1 day, 7 days or 30 days.