File electron-launcher.sh of Package nodejs-electron

#!/bin/bash

set -euo pipefail

name=electron
flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/${name}-flags.conf"

declare -a flags

if [[ -f "${flags_file}" ]]; then
    mapfile -t < "${flags_file}"
fi

for line in "${MAPFILE[@]}"; do
    if [[ ! "${line}" =~ ^[[:space:]]*#.* ]]; then
        flags+=("${line}")
    fi
done

exec XXXLIBDIRXXX/${name}/electron "$@" "${flags[@]}"
openSUSE Build Service is sponsored by