summarylogtreecommitdiffstats
path: root/another-redis-desktop-manager.sh
diff options
context:
space:
mode:
authorzxp198210052023-10-26 18:31:15 +0800
committerzxp198210052023-10-26 18:31:15 +0800
commit9c250ef56e0b52548785307b3d904b49c2eb8645 (patch)
treee303c6e3a8cf6e383117bb038cf071742fe82f7d /another-redis-desktop-manager.sh
downloadaur-9c250ef56e0b52548785307b3d904b49c2eb8645.tar.gz
update to 1.6.1
Diffstat (limited to 'another-redis-desktop-manager.sh')
-rw-r--r--another-redis-desktop-manager.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/another-redis-desktop-manager.sh b/another-redis-desktop-manager.sh
new file mode 100644
index 000000000000..98bd7832279c
--- /dev/null
+++ b/another-redis-desktop-manager.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+_ELECTRON=/usr/bin/electron12
+APPDIR="/usr/lib/another-redis-desktop-manager"
+export PATH="${APPDIR}:${PATH}"
+export LD_LIBRARY_PATH="${APPDIR}/swiftshader:${APPDIR}/usr/lib:${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