summarylogtreecommitdiffstats
path: root/chain-desktop-wallet.sh
diff options
context:
space:
mode:
authorzxp198210052023-07-07 17:59:52 +0800
committerzxp198210052023-07-07 17:59:52 +0800
commitd5e7c0946d921fc9ae1a21503ce74137e1c5a593 (patch)
treea12d935c518167cd6c5b80d88ae2ce24e8bff330 /chain-desktop-wallet.sh
downloadaur-d5e7c0946d921fc9ae1a21503ce74137e1c5a593.tar.gz
first release
Diffstat (limited to 'chain-desktop-wallet.sh')
-rw-r--r--chain-desktop-wallet.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/chain-desktop-wallet.sh b/chain-desktop-wallet.sh
new file mode 100644
index 000000000000..72674a2f31d2
--- /dev/null
+++ b/chain-desktop-wallet.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
+ exec electron /opt/chain-desktop-wallet/app.asar "$@"
+else
+ exec electron --no-sandbox /opt/chain-desktop-wallet/app.asar "$@"
+fi \ No newline at end of file