Bug 1211546

Summary: Nautilus Preview Sushi not working/showing out of the Box on fresh TW install
Product: [openSUSE] openSUSE Tumbleweed Reporter: Milka Man <werbemailaccount>
Component: GNOMEAssignee: E-mail List <gnome-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: bjorn.lie
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Milka Man 2023-05-19 08:51:04 UTC
Hi there.

Component:
NautilusPreviewer in Nautilus

OS: OpenSuse Tumbleweed 20230515

Overview:
on a fresh and recent TW install Sushi preview is not working.

Steps to Reproduce:
1) Install recent TW
2) Start Filemanager Nautilus
3) Create textfile and enter Text
4) Press Space in Nautilus on created textfile

Actual Results:
Nothing. No Error or anything in GUI

Expected Results:
Nautilus should show Nautilus Preview Window showing contents of textfile

Builddate & HW:
System:
  Host: notebook Kernel: 6.3.1-2-default arch: x86_64 bits: 64 Desktop: GNOME
    v: 44.1 Distro: openSUSE Tumbleweed 20230515

Additional Information:
Starting Nautilus from console throws this error, when trying to open a file

(sushi:17266): Gjs-WARNING **: 10:31:57.320: JS ERROR: Unable to create DBus proxy for NautilusPreviewer: Gio.DBusError: Fehler beim Aufruf von StartServiceByName für org.gnome.NautilusPreviewer: Process org.gnome.NautilusPreviewer exited with status 1
_injectToMethod/klass[method]@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:292:25
wrapper@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:253:17
@/usr/bin/sushi:47:13

Removing and installing Flatpak Version of Sushi kind of works, however no LibreOffice integration is present, although LibreOffice is present on my System.
Comment 1 Bjørn Lie 2023-05-20 19:16:39 UTC
Indeed reproduced in a new vm install.

The missing "bits" are
 
libgtksourceview-4-0
typelib-1_0-GtkSource-4-4.8.4-1.2.x86_64

Not sure if we should add that to sushi or not.
Comment 2 Bjørn Lie 2023-05-20 19:17:18 UTC
Err cleanup

The missing "bits" are
 
libgtksourceview-4-0
typelib-1_0-GtkSource-4
Comment 3 Luciano Santos 2023-05-21 04:12:42 UTC
I looked around and saw that two things are happening here.

The first one is Sushi not ending up with versioned typelib() symbols, such as:

> $ rpm -qR sushi | grep GtkSource
> typelib(GtkSource)

And this is due to our Gobject Introspection's gi-find-deps.sh script (the one generating typelib() provides/requires) not catching up a kind of a quirk in the parsed source code.

Because of this deficiency, obviously something else had to make sure typelib-1_0-GtkSource-4 was getting pulled in a default GNOME installation. And I say that because Sushi doesn't get much changes in the code for a while now.

Indeed, we replaced Gedit with Text Editor [1] in our Patterns about a month ago. And with that, we lost what was pulling typelib-1_0-GtkSource-4:

> $ rpm -qR gedit | grep GtkSource
> typelib(GtkSource) = 4

BTW, typelib-1_0-GtkSource-4 requires libgtksourceview-4-0:

> $ rpm -qR typelib-1_0-GtkSource-4 | grep gtksourceview
> libgtksourceview-4.so.0()(64bit)

I made a change to Gobject Introspection's gi-find-deps.sh that fixes this issue. Once we discussed/tested, it should land soon in Tumbleweed.

[1] https://build.opensuse.org/request/show/1079456
Comment 4 OBSbugzilla Bot 2023-09-07 05:05:02 UTC
This is an autogenerated message for OBS integration:
This bug (1211546) was mentioned in
https://build.opensuse.org/request/show/1109384 Backports:SLE-15-SP5 / sushi
Comment 5 OBSbugzilla Bot 2023-09-08 11:15:02 UTC
This is an autogenerated message for OBS integration:
This bug (1211546) was mentioned in
https://build.opensuse.org/request/show/1109711 Backports:SLE-15-SP5 / sushi
Comment 6 Marcus Meissner 2023-09-26 13:05:32 UTC
openSUSE-RU-2023:0274-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1211546
CVE References: 
JIRA References: 
Sources used:
openSUSE Backports SLE-15-SP5 (src):    sushi-41.2-bp155.2.5.1
Comment 7 Bjørn Lie 2023-10-01 10:58:59 UTC
This is resolved, so closing