summarylogtreecommitdiffstats
path: root/simplest-file-renamer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'simplest-file-renamer.sh')
-rw-r--r--simplest-file-renamer.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/simplest-file-renamer.sh b/simplest-file-renamer.sh
new file mode 100644
index 000000000000..d81ddb090bcf
--- /dev/null
+++ b/simplest-file-renamer.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+_ELECTRON=/usr/bin/electron27
+APPDIR="/usr/lib/simplest-file-renamer"
+export PATH="${APPDIR}:${PATH}"
+#export LD_LIBRARY_PATH="${APPDIR}/swiftshader:${LD_LIBRARY_PATH}"
+_ASAR="${APPDIR}/app.asar"
+if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
+ exec ${_ELECTRON} ${_ASAR} "$@"
+else
+ exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@"
+fi \ No newline at end of file