Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use flatpak info -l to auto-discover Flatpak installation path #3252

Closed
cyrneko opened this issue Dec 24, 2024 · 1 comment
Closed

Use flatpak info -l to auto-discover Flatpak installation path #3252

cyrneko opened this issue Dec 24, 2024 · 1 comment

Comments

@cyrneko
Copy link

cyrneko commented Dec 24, 2024

📝 Provide a description of the new feature

Spicetify currently requires manual setup to be used with Flatpak, primarily due to the app being installed in different places depending on whether it's per-user or system-wide.

The Spicetify CLI should use the flatpak info -l command to discover the current Spotify installation directory. Data is returned simply as a string pointing to the current commit like this:

~ ❯ flatpak info -l com.spotify.Client
/var/lib/flatpak/app/com.spotify.Client/x86_64/stable/8c89d7ad6a8fa91bacda2f9f5a5d488f70d0d6acbd3773ba3f48f6e53b90a89f

It can then omit the last path (the commit) and replace it by active, adding the rest of the expected path (files/extra/share/spotify/) and use it as the spotify_path

➕ Additional Information

N/A

@rxri
Copy link
Member

rxri commented Dec 24, 2024

We don’t want to execute commands unless necessary (for example in the case of Windows Microsoft Store version). I’m pretty sure we have all paths where flatpak version can be.

@rxri rxri closed this as not planned Won't fix, can't repro, duplicate, stale Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants