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.64k stars 732 forks source link

flatpak: can't find offline.bnk when directory exists #1980

Closed apprehensions closed 2 years ago

apprehensions commented 2 years ago

πŸ” Have you checked Spicetify.app page for your issue?

πŸ” Is there already an issue for your problem?

β„Ή Environment / Computer Info

- Spotify version: 1.1.84.716.gc5f8b819
- Spicetify version:2.14.0

πŸ“ Description

https://github.com/spicetify/spicetify-cli/blob/4b1fda2198fc61eb0b9a5fe30f3585dd47a02c16/src/cmd/devtools.go#L35-L38

$ ls $HOME/.var/app/com.spotify.Client/cache/spotify/offline.bnk
/home/wael/.var/app/com.spotify.Client/cache/spotify/offline.bnk
$ wc -c $HOME/.var/app/com.spotify.Client/cache/spotify/offline.bnk
11157 /home/wael/.var/app/com.spotify.Client/cache/spotify/offline.bnk # it exists!

πŸ“Έ Screenshots

newfstatat(AT_FDCWD, "/var/lib/flatpak/app/com.spotify.Client/x86_64/stable/active/files/extra/share/spotify", {st_mode=S_IFDIR|0777, st_size=456, ...}, 0) = 0
newfstatat(AT_FDCWD, "/home/wael/.var/app/com.spotify.Client/config/spotify/prefs", {st_mode=S_IFREG|0644, st_size=1312, ...}, 0) = 0
newfstatat(AT_FDCWD, "/var/lib/flatpak/app/com.spotify.Client/x86_64/stable/active/files/extra/share/spotify/Apps", {st_mode=S_IFDIR|0700, st_size=28, ...}, 0) = 0
write(1, "\33[1mspicetify v2.14.0\33[0m\n", 26spicetify v2.14.0
) = 26
newfstatat(AT_FDCWD, "/home/wael/snap/spotify/common", 0xc00018e6b8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/wael/.var/app/com.spotify.Client", {st_mode=S_IFDIR|0755, st_size=54, ...}, 0) = 0
newfstatat(AT_FDCWD, "/home/wael/.cache/spotify/offline.bnk", 0xc00018e858, 0) = -1 ENOENT (No such file or directory)
write(1, "\33[31merror\33[0m Can't find \"offli"..., 40error Can't find "offline.bnk"
) = 40
exit_group(1)                           = ?
+++ exited with 1 +++
apprehensions commented 2 years ago

https://github.com/spicetify/spicetify-cli/issues/1752#issuecomment-1202681009 flatpak ver: Flatpak 1.14.0

rxri commented 2 years ago

That doesn't make sense at all. Will look into it