1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 04:35:13 +03:00
aports/testing/electron/electron-launcher.sh
Lauren N. Liberda 4fc6bf4749
testing/electron: move ELECTRON_FLAGS after invoker argv in launcher
some apps (namely, testing/code-oss) use ELECTRON_RUN_AS_NODE to run a Node.js script, which in turn opens the actual Electron app, and might expect a certain order of arguments...
2022-08-13 12:59:56 +02:00

14 lines
469 B
Bash

#!/bin/sh
# Allow the user to override command-line flags
# This is based on Debian's chromium-browser package, and is intended
# to be consistent with Debian.
for f in /etc/electron/*.conf; do
[ -f ${f} ] && . "${f}"
done
# Prefer user defined ELECTRON_USER_FLAGS (from env) over system
# default ELECTRON_FLAGS (from /etc/electron/default.conf).
ELECTRON_FLAGS=${ELECTRON_USER_FLAGS:-"$ELECTRON_FLAGS"}
exec "/usr/lib/electron/electron" "$@" ${ELECTRON_FLAGS}