fix: make the install procedure on linux use XDG_CONFIG_HOME (#595)

This commit is contained in:
/ˈɛvən/
2023-08-01 03:51:40 -04:00
committed by GitHub
parent 71cdeda7b3
commit cad0d174d7

View File

@@ -43,10 +43,11 @@ Most notable features:
On Linux and macOS these terminal commands can be used to install or update uosc (if wget and unzip are installed):
```sh
mkdir -pv ~/.config/mpv/script-opts/
rm -rf ~/.config/mpv/scripts/uosc_shared
config_dir="${XDG_CONFIG_HOME:-~/.config}"
mkdir -pv "$config_dir"/mpv/script-opts/
rm -rf "$config_dir"/mpv/scripts/uosc_shared
wget -P /tmp/ https://github.com/tomasklaen/uosc/releases/latest/download/uosc.zip
unzip -od ~/.config/mpv/ /tmp/uosc.zip
unzip -od "$config_dir"/mpv/ /tmp/uosc.zip
rm -fv /tmp/uosc.zip
```