Skip to content

Issue 26: Refactor Spotify launch process to handle Flatpak spotify when minimizing window#27

Open
guzzdev wants to merge 1 commit intoSonath21:mainfrom
guzzdev:spotify-flatpak-issue-26
Open

Issue 26: Refactor Spotify launch process to handle Flatpak spotify when minimizing window#27
guzzdev wants to merge 1 commit intoSonath21:mainfrom
guzzdev:spotify-flatpak-issue-26

Conversation

@guzzdev
Copy link

@guzzdev guzzdev commented Feb 10, 2026

Fix for issue 26

Tested on same fail condition as described in issue (Fedora 43, Flatpak Spotify).

Fallback launch if no Spotify window is found after scanning all window actors, the extension now calls _launchSpotifyProcess() so Spotify is started.
_launchSpotifyProcess() tries the native spotify command first, then falls back to flatpak run com.spotify.Client, so native and Flatpak installs are supported when the user clicks the indicator and no window exists.

I will be glad to hear if you would do it differently.

@Sonath21
Copy link
Owner

Looks good, for now I can’t merge it because I need to test it locally as well, also cleanly check if the code follows all gnome 45+ standards (seems to, but I don’t see any clean up in the destructor, maybe not needed in this case). Will merge when I find the time to check it out.

@guzzdev
Copy link
Author

guzzdev commented Feb 10, 2026

Unsure about clean up, did not think about it. Let me know if you need any change.
Thank you.

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

Successfully merging this pull request may close these issues.

2 participants