Skip to content

Commit ad4b720

Browse files
committed
fix: init paths for few unchainable commands
1 parent 9017247 commit ad4b720

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spicetify.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ func main() {
170170
return
171171

172172
case "spotify-updates":
173+
cmd.InitPaths()
173174
commands = commands[1:]
174175
if len(commands) == 0 {
175176
utils.PrintError("No parameter given. It has to be \"block\" or \"unblock\".")
@@ -187,6 +188,7 @@ func main() {
187188
return
188189

189190
case "path":
191+
cmd.InitPaths()
190192
commands = commands[1:]
191193
path, err := (func() (string, error) {
192194
if styleFocus {
@@ -230,6 +232,8 @@ func main() {
230232
return
231233

232234
case "watch":
235+
cmd.InitPaths()
236+
233237
var name []string
234238
if len(commands) > 1 {
235239
name = commands[1:]

0 commit comments

Comments
 (0)