spicetify / cli

Command-line tool to customize Spotify client. Supports Windows, MacOS, and Linux.
https://spicetify.app
GNU Lesser General Public License v2.1
18.14k stars 715 forks source link

spicetify cant detect prefs file location #199

Closed lktoby closed 4 years ago

lktoby commented 4 years ago

so basically when i tried to initalize spicetify it returned something like this (im on arch and i installed it from pacman) $ sudo spicetify update [sudo] password for toby: spicetify v0.9.9 error Cannot detect Spotify "prefs" file location. Please manually set "prefs_path" in config.ini then i tried finding the prefs file as suggested in the wiki $ find | grep "spotify/prefs$" ./.config/spotify/prefs but this is my spicetify config:

$ cat /home/toby/.config/spicetify/config.ini
[AdditionalOptions]
visualization_high_framerate = 0
custom_apps                  = 
home                         = 0
lyric_force_no_sync          = 0
radio                        = 0
tastebuds                    = 0
extensions                   = 
lyric_always_show            = 0
made_for_you_hub             = 0
minimal_ui                   = 0
new_feedback_ui              = 0
search_in_sidebar            = 0
experimental_features        = 0
song_page                    = 0
fastUser_switching           = 0

[Setting]
spotify_path     = /opt/spotify
prefs_path       = ./.config/spotify/prefs
current_theme    = SpicetifyDefault
color_scheme     = 
inject_css       = 1
replace_colors   = 1
overwrite_assets = 0

[Preprocesses]
disable_sentry     = 1
disable_ui_logging = 1
remove_rtl_rule    = 1
expose_apis        = 1

; DO NOT CHANGE!
[Backup]
version = 1.1.10.546.ge08ef575

yea exactly the same path but still it cant detect the prefs file (i tried the absolute path but still doesnt work)

khanhas commented 4 years ago

The path you put in there is a "relative" path. Please put it an absolute path. I guess it would be /home/toby/.config/spotify/prefs

lktoby commented 4 years ago

i tried the absolute path, it still shows the same error:

[toby@tobyarch ~]$ cat /home/toby/.config/spicetify/config.ini
[AdditionalOptions]
visualization_high_framerate = 0
custom_apps                  = 
home                         = 0
lyric_force_no_sync          = 0
radio                        = 0
tastebuds                    = 0
extensions                   = 
lyric_always_show            = 0
made_for_you_hub             = 0
minimal_ui                   = 0
new_feedback_ui              = 0
search_in_sidebar            = 0
experimental_features        = 0
song_page                    = 0
fastUser_switching           = 0

[Setting]
spotify_path     = /opt/spotify
prefs_path       = /home/toby/.config/spotify/prefs
current_theme    = SpicetifyDefault
color_scheme     = 
inject_css       = 1
replace_colors   = 1
overwrite_assets = 0

[Preprocesses]
disable_sentry     = 1
disable_ui_logging = 1
remove_rtl_rule    = 1
expose_apis        = 1

; DO NOT CHANGE!
[Backup]
version = 1.1.10.546.ge08ef575

and i used the config above to run spicetify:

[toby@tobyarch ~]$ sudo spicetify update
[sudo] password for toby: 
spicetify v0.9.9
error Cannot detect Spotify "prefs" file location. Please manually set "prefs_path" in config.ini
khanhas commented 4 years ago

Please don't run spicetify with Sudo.

khanhas commented 4 years ago

If you have problem with Write permission, fix write permission: https://github.com/khanhas/spicetify-cli/wiki/Installation#note-for-linux-users

lktoby commented 4 years ago

Please don't run spicetify with Sudo.

thats why. now it's fixed thank you :>