Bug 2173282 - rmlint GUI misses dependency to GtkSourceView3
Summary: rmlint GUI misses dependency to GtkSourceView3
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: rmlint
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-25 11:07 UTC by Christian Stadelmann
Modified: 2023-08-16 07:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.