25 lines
799 B
Diff
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 {
|