Bug 2173282

Summary: rmlint GUI misses dependency to GtkSourceView3
Product: [Fedora] Fedora Reporter: Christian Stadelmann <fedora>
Component: rmlintAssignee: Robert-André Mauchin 🐧 <zebob.m>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: bzf, zebob.m
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Stadelmann 2023-02-25 11:07:51 UTC
Description of problem:
rmlint needs GtkSourceView 3 to show the GUI, but it is not marked as a dependency.

Version-Release number of selected component (if applicable):
rmlint-2.10.1-11.fc37.x86_64

How reproducible:
always (packaging issue)

Steps to Reproduce:
1. Have rmlint installed, but without having gtksourceview3 installed
2. Start `rmlint --gui`

Actual results:
rmlint aborts with an error:

$ rmlint --gui
Traceback (most recent call last):
  File "/tmp/.shredder-bootstrap.py.RY5Z01", line 18, in <module>
  File "/usr/lib/python3.11/site-packages/shredder/__init__.py", line 11, in <module>
    gi.require_version('GtkSource', '3.0')
  File "/usr/lib64/python3.11/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available for version %s' %
ValueError: Namespace GtkSource not available for version 3.0

Expected results:
Start just fine or hint to install gtksourceview3.

Additional info:
I recommend to add `Recommends: gtksourceview3` to the spec file. You could also make it "Requires", but that would pull in a GUI dependency on a non-GUI application which I would not like if I'd be using a headless system.

Comment 1 Marco Nolden 2023-03-16 19:39:53 UTC
I stumbled across this bug when I noticed a "Shredder Duplicate Finder" application icon in Gnome which seems to do nothing. 

Steps to reproduce:
1. Have rmlint installed, but without having gtksourceview3 installed
2. Launch "Shredder Duplicate Finder" using Gnome shell

Actual results:
Nothing happens, no error messafge

Expected result:
An error message, or rmlint GUI appears.

It's specified in /usr/share/applications/shredder.desktop , part of rmlint package

Comment 2 Fedora Admin user for bugzilla script actions 2023-06-11 01:03:42 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Fedora Admin user for bugzilla script actions 2023-07-17 00:55:10 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 4 Fedora Release Engineering 2023-08-16 07:10:21 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.