Skip to content

Commit 066c1ed

Browse files
committed
superproductivity: revert wrong edit to superproductivity.sh
1 parent e3d6c20 commit 066c1ed

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

archlinuxcn/superproductivity/superproductivity.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ if [[ -f "${_FLAGS_FILE}" ]]; then
2222
done < "${_FLAGS_FILE}"
2323
fi
2424
cd "${_APPDIR}" || { echo "Failed to change directory to ${_APPDIR}"; exit 1; }
25-
docs
25+
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

Comments
 (0)