2020-02-09 01:34:37 +01:00
|
|
|
diff --git a/src/thumbnailer.js b/src/thumbnailer.js
|
|
|
|
old mode 100644
|
|
|
|
new mode 100755
|
2021-09-23 23:44:41 +02:00
|
|
|
index ed6350ea..83d832cb
|
2020-02-09 01:34:37 +01:00
|
|
|
--- a/src/thumbnailer.js
|
|
|
|
+++ b/src/thumbnailer.js
|
|
|
|
@@ -1,3 +1,4 @@
|
2021-09-23 23:44:41 +02:00
|
|
|
+#!/usr/bin/env gjs --module
|
|
|
|
import Cairo from 'cairo';
|
|
|
|
import Gdk from 'gi://Gdk?version=3.0';
|
|
|
|
import Gio from 'gi://Gio';
|
2020-02-09 01:34:37 +01:00
|
|
|
diff --git a/src/urlPreview.js b/src/urlPreview.js
|
2021-09-23 23:44:41 +02:00
|
|
|
index 5f7931e4..d2282900 100644
|
2020-02-09 01:34:37 +01:00
|
|
|
--- a/src/urlPreview.js
|
|
|
|
+++ b/src/urlPreview.js
|
2021-09-23 23:44:41 +02:00
|
|
|
@@ -69,7 +69,7 @@ class Thumbnailer {
|
|
|
|
async _generateThumbnail(data) {
|
2020-02-09 01:34:37 +01:00
|
|
|
let { filename, uri } = data;
|
|
|
|
this._subProc = Gio.Subprocess.new(
|
2021-09-23 23:44:41 +02:00
|
|
|
- ['gjs', '--module', `${pkg.pkgdatadir}/thumbnailer.js`, uri, filename],
|
2020-02-09 01:34:37 +01:00
|
|
|
+ [`${pkg.pkgdatadir}/thumbnailer.js`, uri, filename],
|
|
|
|
Gio.SubprocessFlags.NONE);
|
2021-09-23 23:44:41 +02:00
|
|
|
try {
|
|
|
|
await this._subProc.wait_async(null);
|