Skip to content

Commit

Permalink
feat(config): add another folder to potentialList (spicetify#2916)
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri authored Mar 25, 2024
1 parent 9ef07f9 commit cac4af8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CustomApps/lyrics-plus/TabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const TabBar = react.memo(({ links, activeLink, lockLink, switchCallback, lockCa
items: droplistItem.map(i => options[i]).filter(Boolean),
switchTo: switchCallback,
lockIn: lockCallback
})
})
: null
)
);
Expand Down
4 changes: 2 additions & 2 deletions CustomApps/new-releases/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function DraggableComponent({ uri, title, children }) {
? react.cloneElement(children, {
onDragStart: dragHandler,
draggable: "true"
})
})
: children;
}

Expand Down Expand Up @@ -53,7 +53,7 @@ class Card extends react.Component {
})
})
})
})
})
: Spicetify.showNotification(`Dismissed <b>${this.title}</b> from <br>${this.artist.name}</b>`);

event.stopPropagation();
Expand Down
2 changes: 1 addition & 1 deletion CustomApps/reddit/TabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const TabBar = react.memo(({ links, activeLink, switchCallback, windowSize = Num
? react.createElement(TabBarMore, {
items: droplistItem.map(i => options[i]).filter(Boolean),
switchTo: switchCallback
})
})
: null
)
);
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.2/schema.json",
"organizeImports": {
"enabled": true
},
Expand Down
5 changes: 3 additions & 2 deletions src/utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,12 @@ func linuxApp() string {
"/usr/share/spotify/",
"/usr/libexec/spotify/",
"/var/lib/flatpak/app/com.spotify.Client/x86_64/stable/active/files/extra/share/spotify/",
"$HOME/.local/share/flatpak/app/com.spotify.Client/x86_64/stable/active/files/extra/share/spotify/",
}

for _, v := range potentialList {
_, err := os.Stat(filepath.Join(v, "Apps"))
_, err2 := os.Stat(filepath.Join(v, "spotify"))
_, err := os.Stat(filepath.Join(ReplaceEnvVarsInString(v), "Apps"))
_, err2 := os.Stat(filepath.Join(ReplaceEnvVarsInString(v), "spotify"))
if err == nil && err2 == nil {
return v
}
Expand Down

0 comments on commit cac4af8

Please sign in to comment.