Bug 1213931 - Sushi quick previewer for GNOME Files/Nautilus not working on fresh Leap 15.5 install
Summary: Sushi quick previewer for GNOME Files/Nautilus not working on fresh Leap 15.5...
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Leap 15.5
Hardware: x86-64 openSUSE Leap 15.5
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Yifan Jiang
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-03 11:25 UTC by bjurg orsku
Modified: 2024-06-11 14:47 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bjurg orsku 2023-08-03 11:25:55 UTC
Hi all,

I've just installed Leap 15.5 on a new VM and I'm not getting file previews when I press the space bar but the following messages appear with "journalctl -f" :


Aug 03 14:21:37 lp155 dbus-daemon[1636]: [session uid=1000 pid=1636] Activating service name='org.gnome.NautilusPreviewer' requested by ':1.90' (uid=1000 pid=4251 comm="/usr/bin/nautilus --gapplication-service ")
Aug 03 14:21:37 lp155 org.gnome.Nauti[4290]: JS ERROR: SyntaxError: expected property name, got '{' @ resource:///org/gnome/NautilusPreviewer/js/viewers/html.js:63
Aug 03 14:21:37 lp155 org.gnome.Nauti[4290]: Script /usr/lib/org.gnome.NautilusPreviewer threw an exception
Aug 03 14:21:37 lp155 dbus-daemon[1636]: [session uid=1000 pid=1636] Activated service 'org.gnome.NautilusPreviewer' failed: Process org.gnome.NautilusPreviewer exited with status 1


Information for package sushi:
------------------------------
Repository     : Main Repository
Name           : sushi
Version        : 43.0-bp155.1.6
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 296.1 KiB
Installed      : Yes
Status         : up-to-date

Information for package gjs:
----------------------------
Repository     : Main Repository
Name           : gjs
Version        : 1.70.2-150400.3.3.1
Arch           : x86_64
Vendor         : SUSE LLC <https://www.suse.com/>
Installed Size : 146.2 KiB
Installed      : Yes
Status         : up-to-date

Maybe related to https://gitlab.gnome.org/GNOME/sushi/-/issues/81 ?

Thanks for your help.
Comment 1 Yifan Jiang 2023-08-04 00:58:27 UTC
> Information for package gjs:
> ----------------------------
> Repository     : Main Repository
> Name           : gjs
> Version        : 1.70.2-150400.3.3.1
> Arch           : x86_64
> Vendor         : SUSE LLC <https://www.suse.com/>
> Installed Size : 146.2 KiB
> Installed      : Yes
> Status         : up-to-date
> 
> Maybe related to https://gitlab.gnome.org/GNOME/sushi/-/issues/81 ?


Thank you bjurg! I think you are right since the gjs version we are using on Leap 15.5 is obviously lower than 1.71.x, and I don't know we have a plan to upgrade gjs to 1.71.x. Moreover the GNOME stack on Leap 15.5 is 41. So using sushi 43 here seems "aggressive". The patch you mentioned was for sushi 41, so I guess it would be right to keep sushi at version 41.2 (the highest minor version of sushi 41) on Leap 15.5.

Hi Rahul,

Can you please help to test the idea? If it works, could you please send a submission request to "downgrade" the package of sushi? The package is not used on SLE and the bug does not affect Tumbleweed, so sending the fix to openSUSE:Backports:SLE-15-SP5:Update on OBS would be sufficient.
Comment 2 bjurg orsku 2023-08-13 06:52:46 UTC
Hi all,

Any news about this bug?
Comment 3 bjurg orsku 2023-08-30 10:39:38 UTC
Hi all,

Downgrading to sushi-41.2-lp155.12.1.x86_64 and sushi-lang-41.2-lp155.12.1.noarch from home:ykoba:Current_Leap (15.5) repo solved the problem.

Of course, an out-of-the-box solution would be much better for the average user. What do you think?
Comment 4 Vincent Hennebert 2023-10-09 17:41:24 UTC
I was about to report the exact same issue when I found out that it had already been filed. Thanks Bjurg for posting a workaround. However, by using opi, I found out that the 41.2-bp155.2.5.1 versions of sushi and sushi-lang were available in the Update repository of openSUSE Backports (which I believe is automatically enabled at installation time). So they can be installed this way:

zypper install --oldpackage sushi-41.2-bp155.2.5.1.x86_64 sushi-lang-41.2-bp155.2.5.1

Not sure if they should be somehow pinned to this version to prevent them from being automatically updated, still new to OpenSUSE.
Comment 5 Vincent Hennebert 2023-10-19 09:11:07 UTC
It turns out that the packages do need to be locked otherwise they will be automatically upgraded to the later, non-working version. This can be done this way:

    zypper addlock sushi sushi-lang