We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3d6c20 commit 066c1edCopy full SHA for 066c1ed
1 file changed
archlinuxcn/superproductivity/superproductivity.sh
@@ -22,4 +22,8 @@ if [[ -f "${_FLAGS_FILE}" ]]; then
22
done < "${_FLAGS_FILE}"
23
fi
24
cd "${_APPDIR}" || { echo "Failed to change directory to ${_APPDIR}"; exit 1; }
25
-docs
+if [[ "${EUID}" -ne 0 ]] || [[ "${ELECTRON_RUN_AS_NODE}" ]]; then
26
+ exec electron@electronversion@ "${_RUNNAME}" ${_OPTIONS} "${_USER_FLAGS[@]}" "$@"
27
+else
28
+ exec electron@electronversion@ "${_RUNNAME}" ${_OPTIONS} --no-sandbox "${_USER_FLAGS[@]}" "$@"
29
+fi
0 commit comments