nixpkgs/pkgs/desktops/gnome/apps/polari/make-thumbnailer-wrappable.patch
Jan Tojnar 468cb5980b gnome: rename from gnome3
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
2021-05-08 09:47:42 +02:00

25 lines
799 B
Diff

diff --git a/src/thumbnailer.js b/src/thumbnailer.js
old mode 100644
new mode 100755
index e2ad0a5..7ebf08a
--- a/src/thumbnailer.js
+++ b/src/thumbnailer.js
@@ -1,3 +1,4 @@
+#!/usr/bin/env gjs
imports.gi.versions.Gdk = '3.0';
imports.gi.versions.Gtk = '3.0';
diff --git a/src/urlPreview.js b/src/urlPreview.js
index f17e0be..ccffc32 100644
--- a/src/urlPreview.js
+++ b/src/urlPreview.js
@@ -44,7 +44,7 @@ class Thumbnailer {
_generateThumbnail(data) {
let { filename, uri } = data;
this._subProc = Gio.Subprocess.new(
- ['gjs', `${pkg.pkgdatadir}/thumbnailer.js`, uri, filename],
+ [`${pkg.pkgdatadir}/thumbnailer.js`, uri, filename],
Gio.SubprocessFlags.NONE);
this._subProc.wait_async(null, (o, res) => {
try {