Does anyone here uses sushi with Nautilus not on Gnome?

I’m using AwesomeWM. Lately I’ve found the need to leave my terminal file managers in favor of GUI file manager. According to other distros videos and tutorials, I’m supposed to install both packages and when hovering a file in Nautilus, hitting space should preiview the file.

I tried installing them to my environment but space does nothing. I tried also using enabling:

    services.gnome3.sushi.enable = true;

According to: NixOS Search but that doesn’t help either.

I tried adding nautilus to systemPackages instead of my user environment but that didn’t help either. I don’t even see an error message when starting nautilus from the command line and hitting space. However there’s an interesting error message when I run in a terminal sushi <file>:

(sushi:2583): Gjs-WARNING **: 17:13:05.673: JS ERROR: Unable to create DBus proxy for NautilusPreviewer: Gio.DBusError: Error calling StartServiceByName for org.gnome.NautilusPreviewer: Process org.gnome.NautilusPreviewer exited with status 1
_injectToMethod/klass[method]@resource:///org/gnome/gjs/modules/overrides/Gio.js:290:16
_makeProxyWrapper/<@resource:///org/gnome/gjs/modules/overrides/Gio.js:267:13
@/nix/store/6v1q653livm51x7rjk9w102308dgflm5-sushi-3.34.0/bin/.sushi-wrapped:47:13

I think that the value of $GI_TYPELIB_PATH may be of interest. Here it is:

echo ${GI_TYPELIB_PATH//:/$'\n'}
/home/doron/.nix-profile/lib/girepository-1.0
/nix/store/7b1y3aql2cpb86ydykvrv8cdsvjxi1bh-pango-1.43.0/lib/girepository-1.0
/nix/store/bv6pr8sxlkdwbf9rqckdjdk7dff7nx7l-gdk-pixbuf-2.38.1/lib/girepository-1.0
/nix/store/m0j9nvpr2j46zfhgd0rkhl1xh3vr2jvb-librsvg-2.44.14/lib/girepository-1.0
/nix/store/lzcvc4w2p4qb8qf18kljigdnxg9p0z9b-gobject-introspection-1.60.1/lib/girepository-1.0
/nix/store/7b1y3aql2cpb86ydykvrv8cdsvjxi1bh-pango-1.43.0/lib/girepository-1.0
/nix/store/bv6pr8sxlkdwbf9rqckdjdk7dff7nx7l-gdk-pixbuf-2.38.1/lib/girepository-1.0
/nix/store/m0j9nvpr2j46zfhgd0rkhl1xh3vr2jvb-librsvg-2.44.14/lib/girepository-1.0
/nix/store/lzcvc4w2p4qb8qf18kljigdnxg9p0z9b-gobject-introspection-1.60.1/lib/girepository-1.0
/nix/store/7b1y3aql2cpb86ydykvrv8cdsvjxi1bh-pango-1.43.0/lib/girepository-1.0
/home/doron/.nix-profile/lib/girepository-1.0

It appears to be broken under GNOME Shell too:

Oct 26 16:33:02 kaiser .org.gnome.Naut[13964]: JS ERROR: ImportError: No JS module 'ui' found in search path
                                               @/nix/store/4pqlhbgz8882qdlyxa70i9ky4sfpmp19-sushi-3.34.0/libexec/.org.gnome.NautilusPreviewer-wrapped:9:1

Perhaps the same issue as GNOME characters not launcable via GNOME shell · Issue #31168 · NixOS/nixpkgs · GitHub

So you are saying that something similar to this change should be applied to sushi? Or nautilus?

Yup, sushi tries to load its ui module but since we renamed the file when wrapping, it gets the app id wrong.

I opened a PR fixing this: gnome3.sushi: fix module loading by jtojnar · Pull Request #72096 · NixOS/nixpkgs · GitHub