fix: make the install procedure on linux use XDG_CONFIG_HOME
(#595)
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user