summarylogtreecommitdiffstats
path: root/youtube-music.sh
blob: 8770989506f7f966dbefc3162cc62f973b6e6723 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"

# Allow users to override command-line options
if [[ -f "$XDG_CONFIG_HOME/youtube-music-flags.conf" ]]; then
   YOUTUBE_MUSIC_USER_FLAGS="$(grep -v '^#' "$XDG_CONFIG_HOME/youtube-music-flags.conf")"
fi

# Launch
export ELECTRON_IS_DEV=0
exec electron@ELECTRONVERSION@ /usr/lib/youtube-music/app.asar $YOUTUBE_MUSIC_USER_FLAGS "$@"