-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
rhel-9.4
-
None
-
No
-
Low
-
rhel-sst-display-desktop-foundation
-
ssg_display
-
None
-
False
-
-
None
-
Red Hat Enterprise Linux
-
None
-
-
x86_64
-
None
What were you trying to do that didn't work?
gnome-screenshot crashes in interactive mode when disable-save-to-disk=true.
Please provide the package NVR for which bug is seen:
- Red Hat Enterprise Linux release 9.4 (Plow)
- gnome-screenshot-40.0-4.el9_4.1.x86_64
How reproducible:
Always
Steps to reproduce
$ gsettings set org.gnome.desktop.lockdown disable-save-to-disk true
$ gnome-screenshot -w -i
[choose a window to take the screenshot]
Expected results
gnome-screenshot should fail gracefully instead of crashing.
Actual results
** Message: 10:31:26.715: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.(gnome-screenshot:8156): Gdk-WARNING **: 10:31:26.715: ../gdk/x11/gdkwindow-x11.c:5653 drawable is not a native X11 window(gnome-screenshot:8156): GLib-GObject-WARNING **: 10:31:26.715: invalid cast from 'GdkWaylandDisplay' to 'GdkX11Display' Segmentation fault (core dumped)
Additional information
On RHEL 8, gnome-screenshot does not crash but gets hung.