1

I try to use sushi (which offer similar feature like Quick Look on MacOS ) on Ubuntu 19.04. Got this error:

(sushi-start:8478): Gjs-WARNING **: 15:07:50.705: JS ERROR: Error: Requiring Sushi, version none: Requiring namespace 'GtkSource' version '3.0', but '4' is already loaded
@/usr/share/sushi/js/viewers/text.js:33:7
pomsky
  • 70,557
NanoNova
  • 113

2 Answers2

1

The package sushi is for generic Desktop environements.

it works on unity and probably many others out of the box but for Gnome (like ubuntu 18 and 19 uses) you need to add the gnome-sushi package.

tatsu
  • 3,346
1

Adding imports.gi.versions.GtkSource = "3.0";

to the start of the file /usr/share/sushi/js/viewers/text.js fixed this for me.

See https://gitlab.gnome.org/GNOME/sushi/issues/12 and https://bugs.archlinux.org/task/59447

Paolo
  • 26