shutter-project / shutter

Screenshot tool for Linux
https://shutter-project.org/
GNU General Public License v3.0
528 stars 36 forks source link

shutter won't edit screenshots #714

Open martinkg opened 4 hours ago

martinkg commented 4 hours ago

Brief summary of issue

shutter won't edit screenshots on Fedora 41

Steps to reproduce the issue

  1. Take screenshot.
  2. Select it.
  3. Click Edit

Actual Results:
Nothing happens.

Error output

When opening shutter from terminal, it prints this when clicking Edit:

unhandled exception in callback: Couldn’t recognize the image file format for file “/usr/share/shutter/resources/icons/drawing_tool/cursor/arrow” at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 67. *** ignoring at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 67. at /usr/bin/shutter line 11031.

Extra information, such as Shutter version, display server in use (Xorg or Wayland), operating system and ideas for how to solve: version shutter-0.99.5 with Wayland

Problem does' nt exists on Fedora 40

Bugzilla Report

Photon89 commented 3 hours ago

Could you please check whether /usr/share/shutter/resources/icons/drawing_tool/cursor/arrow exists and is an image which can be viewed?

yajo commented 1 hour ago

It looks like it's a text file, not image: image

DarthGandalf commented 56 minutes ago

That's actually how XPM format looks like. Maybe somehow your system lost ability to read XPM files? E.g. https://packages.ubuntu.com/focal/libxpm4 missing? (no idea what would be the Fedora analog of this)

yajo commented 42 minutes ago

AFAICS it's installed:


$ dnf info libXpm
Updating and loading repositories:
Repositories loaded.
Installed packages
Name            : libXpm
Epoch           : 0
Version         : 3.5.17
Release         : 4.fc41
Architecture    : x86_64
Installed size  : 148.4 KiB
Source          : libXpm-3.5.17-4.fc41.src.rpm
From repository : fedora
Summary         : X.Org X11 libXpm runtime library
URL             : http://www.x.org
License         : MIT AND X11-distribute-modifications-variant
Description     : X.Org X11 libXpm runtime library
Vendor          : Fedora Project

Available packages
Name           : libXpm
Epoch          : 0
Version        : 3.5.17
Release        : 4.fc41
Architecture   : i686
Download size  : 67.7 KiB
Installed size : 151.7 KiB
Source         : libXpm-3.5.17-4.fc41.src.rpm
Repository     : fedora
Summary        : X.Org X11 libXpm runtime library
URL            : http://www.x.org
License        : MIT AND X11-distribute-modifications-variant
Description    : X.Org X11 libXpm runtime library
Vendor         : Fedora Project

$ sudo dnf install libXpm
Updating and loading repositories:
 Fedora 41 - x86_64 - Updates           100% |  61.5 KiB/s |  24.1 KiB |  00m00s
 RPM Fusion for Fedora 41 - Free - Upda 100% |  15.5 KiB/s |   7.8 KiB |  00m01s
 RPM Fusion for Fedora 41 - Nonfree - U 100% |  16.0 KiB/s |   7.9 KiB |  00m00s
 RPM Fusion for Fedora 41 - Nonfree - S 100% |  17.8 KiB/s |   7.3 KiB |  00m00s
 Copr repo for PyCharm owned by phracek 100% |   3.0 KiB/s |   1.8 KiB |  00m01s
 google-chrome                          100% |  12.3 KiB/s |   1.3 KiB |  00m00s
 RPM Fusion for Fedora 41 - Nonfree - N 100% |  16.1 KiB/s |   8.2 KiB |  00m01s
 Fedora 41 - x86_64 - Updates           100% |   1.7 MiB/s |   2.1 MiB |  00m01s
 RPM Fusion for Fedora 41 - Free - Upda 100% |  22.5 KiB/s |  17.2 KiB |  00m01s
 RPM Fusion for Fedora 41 - Nonfree - U 100% |  24.8 KiB/s |  23.0 KiB |  00m01s
 google-chrome                          100% |  13.6 KiB/s |   3.3 KiB |  00m00s
 RPM Fusion for Fedora 41 - Nonfree - N 100% |  23.2 KiB/s |  17.2 KiB |  00m01s
Repositories loaded.
Package "libXpm-3.5.17-4.fc41.x86_64" is already installed.

Nothing to do.