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

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

|improve this answer|||||
  • Thx, it works, so it's a bug? – NanoNova Jul 27 '19 at 1:20
  • @AlexTan Yes, I believe it's a bug. The workaround is the 'easy fix' for now. – Thomas Ward Jul 27 '19 at 17:59

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.

|improve this answer|||||
  • I install it via apt install gnome-sushi, and rebooted. When I press space button, nothing happen. – NanoNova Jul 11 '19 at 10:50
  • you need to reboot first. – tatsu Jul 11 '19 at 11:32
  • I did reboot, still nothing – NanoNova Jul 11 '19 at 12:22
  • :( that's weird worked for me – tatsu Jul 11 '19 at 16:49
  • @alex Please try pressing <Space> 4-5 times with 2-3 seconds gap between two key-presses and report back. – pomsky Jul 26 '19 at 4:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.