summarylogtreecommitdiffstats
path: root/legcord-launcher.sh
blob: da3aa372131d27bf32454bec4b3a0d017ba0645c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

electron=/usr/bin/electron

CONFIG=${XDG_CONFIG_HOME:-~/.config}
FLAGS="$CONFIG/legcord-flags.conf"

# Allow users to override command-line options
if [ -f "$FLAGS" ]; then
  USER_FLAGS="$(cat "$FLAGS")"
fi

# shellcheck disable=SC2086 # USER_FLAGS has to be unquoted
"$electron" /usr/share/legcord/app.asar $USER_FLAGS "$@"