Skip to content

Commit 8d38e99

Browse files
authored
fix(install): respect XDG_CONFIG_HOME (#839)
Apply the same logic that is used in _spicetify/cli/src/utils/path-utils.go:GetSpicetifyFolder_. $SPICETIFY_CONFIG_DIR is now, in order : - $SPICETIFY_CONFIG - $XDG_CONFIG_HOME/spicetify - $HOME/.config/spicetify This fixes a bug when installing `spicetify` and `marketplace` with a custom $XDG_CONFIG_HOME, making the marketplace theme and custom app invisible to spicetify.
1 parent 4751c1f commit 8d38e99

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/install.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ echo "FETCHING Version $tag"
2323
download_uri=$releases_uri/download/v$tag/marketplace.zip
2424
default_color_uri="https://raw.githubusercontent.com/spicetify/marketplace/main/resources/color.ini"
2525

26-
SPICETIFY_CONFIG_DIR="${SPICETIFY_CONFIG:-$HOME/.config/spicetify}"
26+
SPICETIFY_CONFIG_DIR="$SPICETIFY_CONFIG"
27+
if [ -z "$SPICETIFY_CONFIG_DIR" ]; then
28+
SPICETIFY_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/spicetify"
29+
fi
2730
INSTALL_DIR="$SPICETIFY_CONFIG_DIR/CustomApps"
2831

2932
if [ ! -d "$INSTALL_DIR" ]; then

0 commit comments

Comments
 (0)