GNOME Screenshot is a small utility that takes a screenshot of the whole
desktop; the currently focused window; or an area of the screen.
The standard GNOME desktop session does not use GNOME Screenshot any more.
If you are using the standard GNOME desktop session, and you’re experiencing
an issue when taking a screenshot, you should file it under the GNOME Shell
component: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/.
NOTE: This project is unmaintained.
Since I updated to F43 I get an error for Screenshot:
I do use this specific app, because the build in Screenshot app from Gnome not supports “Delay in seconds” and “Show Pointer”.
Journalctl
mar 21 10:44:55 systemd[2088]: Started app-gnome-io.elementary.screenshot-12604.scope - Application launched by gnome-shell.
mar 21 10:45:00 io.elementary.screenshot[12604]: Application.vala:117: Failed to take screenshot via portal: Screenshot failed
mar 21 10:46:13 audit[10287]: AUDIT1138 pid=10287 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:rpm_t:s0 msg='op=remove sw="elementary-screenshot-8.0.1-2.fc43.x86_64" sw_type=rpm key_enforce=0 gpg_res=0 root_dir="/" comm="packagekitd" exe="/usr/libexec/packagekitd" hostname=? addr=? terminal=? res=success'
mar 21 10:46:13 PackageKit[10287]: in /34370_cbbcabdd for remove-packages package elementary-screenshot;8.0.1-2.fc43;x86_64;installed was removing for uid 1000
mar 21 10:46:26 packagekitd[10287]: Failed to get cache filename for elementary-screenshot
mar 21 10:47:31 gnome-screenshot[84950]: Unable to select area using GNOME Shell's builtin screenshot interface, resorting to fallback X11.
mar 21 10:48:06 gnome-screenshot[84950]: Unable to select area using GNOME Shell's builtin screenshot interface, resorting to fallback X11.
mar 21 10:48:35 gnome-screenshot[84950]: Unable to select area using GNOME Shell's builtin screenshot interface, resorting to fallback X11.
mar 21 10:49:27 gnome-screenshot[84950]: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.
mar 21 10:49:27 gnome-screenshot[84950]: gdk_pixbuf_get_from_surface: assertion 'width > 0 && height > 0' failed
mar 21 10:49:27 gnome-screenshot[84950]: *** BUG ***
mar 21 10:49:27 gnome-screenshot[84950]: In pixman_region32_init_rect: Invalid rectangle passed
mar 21 10:49:27 gnome-screenshot[84950]: Set a breakpoint on '_pixman_log_error' to debug
mar 21 10:49:27 gnome-screenshot[84950]: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
mar 21 10:49:27 gnome-screenshot[84950]: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
mar 21 10:49:27 gnome-screenshot[84950]: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
mar 21 10:49:27 gnome-screenshot[84950]: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
mar 21 10:49:27 gnome-screenshot[84950]: gtk_window_resize: assertion 'width > 0' failed
mar 21 10:49:27 gnome-screenshot[84950]: Unable to capture a screenshot of any window
It says something about X11 fallback. I installed the app when we still had x11 option to log in (see journalctl). I reinstalled the app (rpm) and also tested the flatpak version.
grim works with Wayland and it has an option to include the pointer. It doesn’t appear to have a delay, but I guess you could hack together your own shell script with a sleep command and then tie a keyboard shortcut to the custom shell script?
Unfortunately grim not works on a gnome 49. It says that the Compositor (Mutter?!) not works with it.
When I do log in with Niri it works.
However I do prefer a graphical interface for this kind of tool. Sometimes i need a drop down menu in a screenshot and for that I need a delay to open the menu before take the screenshot.
I also notice this issue.
Seems the recent gnome-shell accepts the screenshot with the media key or Flatpak:
I don’t know if it’s an expected change or a bug.
The workaround is to run gnome-shell with unsafe_mode:
Run the looking glass with Alt-F2 key and type “lg”, “global.context.unsafe_mode”, “global.context.unsafe_mode = true!”
Since Gnome 41 unsafe mode is necessary to let applications access certain private D-Bus APIs of the Gnome Shell. This mostly concerns:
API for Screenshots (also sometimes used for screen sharing): most applications now use a new interface instead, but legacy applications may need unsafe mode for this
Calling the org.gnome.Shell.Eval method to execute javascript inside Gnome Shell: This is useful for keybindings or for controlling the Gnome Shell from a script.
As I do understand that is by design. It would need someone who could change the access to xdg-desktop-portal, so the private D-Bus APIs would not be touched anymore and unsafe-mode would be obsolete for that application.
@fujiwara Do you know how I can find out the application name for a gnome app in general? I would like to know if the screenshot app gnome uses, would be able to include the delay option? This way, I would have to install a application less when using a new installation
@ilikelinux Probably I don’t understand your question. I use gnome-screenshot which uses a general session bus of G_BUS_TYPE_SESSION anv g_dbus_connection_call_sync().
Calling the org.gnome.Shell.Eval method to execute javascript inside Gnome Shell: This is useful for keybindings or for controlling the Gnome Shell from a script.
Probably it would be more useful while currently I made a gnome-shell extesnion locally.
There is a Gnome Shell extension, “Allow gnome-screenshot”.
If it is a matter of being able to also capture e.g. right-click or pull down menu’s, the build-in tool does the job. This is where previously, you needed the delay. But perhaps your use case is different?
To capture the pointer in the screenshot, the option is there but easy to miss: click the white arrow on the bottom right. This setting is remembered.
Yes sometimes I need to take a screenshot in the software app and showing the possibilities for selection.
This unfortunately i can’t. Or is there a shortcut which I can use to open the pulldown, after wards when the selection is made ?
I do not understand this. In the default Gnome tool, when you click the icon, cursors are included in the screenshot tool. Else the tool captures exactly what is there the moment you hit PrtScr. That includes right-click menus etc, which when using the old tool, would have required the delay in order to capture these.
Just give me a hint how I open the pull down option under the Open button? So that I can take a print screen with the option open. Sometimes I need that to show the options available in flatpak etc.
It just closes the pull-down menu when I hit the button with the mouse. I tried the print-screen key form the keyboard, no luck with that.
It cannot work with the mouse, because then you first open the status menu. This removes the focus of Software, so its pull down closes before you hit the Screenshot icon.