From b8a5ec10a6879f28caef61a71db4ba80e328938d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?/=CB=88=C9=9Bv=C9=99n/?= Date: Tue, 1 Aug 2023 03:51:40 -0400 Subject: [PATCH] fix: make the install procedure on linux use `XDG_CONFIG_HOME` (#595) --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d329cede..c1f4d64e 100644 --- a/README.md +++ b/README.md @@ -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 ```