opnsense-ports/deskutils/foliate/files/patch-src_main.js
Franco Fichtner d1d7d6d6f4 */*: sync with upstream
Taken from: HardenedBSD
2019-10-16 10:50:36 +02:00

13 lines
618 B
JavaScript

Adds variable to help substitute the correct python version suffix.
--- src/main.js.orig 2019-10-07 20:11:48 UTC
+++ src/main.js
@@ -1796,7 +1796,7 @@ class BookViewerWindow {
}
open(fileName, realFileName, inputType = 'epub') {
if (kindleExts.some(x => fileName.endsWith(x))) {
- const python = GLib.find_program_in_path('python') || GLib.find_program_in_path('python3')
+ const python = GLib.find_program_in_path('@PYTHON_VERSION@')
const kindleUnpack = pkg.pkgdatadir + '/assets/KindleUnpack/kindleunpack.py'
const dir = GLib.dir_make_tmp(null)