feat: Update spotify-on-musl with new findings
continuous-integration/drone/push Build is passing Details

This commit is contained in:
ptrcnull 2021-12-03 06:04:50 +01:00
parent 30b4f74d0d
commit 6add34e7f5
2 changed files with 10 additions and 3 deletions

View File

@ -1,11 +1,9 @@
---
title: "WIP: Running Spotify on musl"
title: "Running Spotify on musl"
date: 2021-11-19T16:22:02+01:00
draft: false
---
Note: this post is not finished yet (and might never be) - it's more of a collection of notes.
When trying to run Spotify on Alpine, most answers on the internet pointed to [Flatpak](https://flatpak.org/).
And don't get me wrong - Flatpak is great and allows for running glibc-based apps
with minimal setup, but... I'd really like to get Spotify to run natively, mostly because containers a bit heavier in terms of disk space and interoperability is .
@ -176,3 +174,12 @@ Unfortunately, it still shows the white window and `strace` reveals that it stil
This is where the post ends, at least for now (2021-11-19).
If you manage to make it further than I did, please DM me on [Telegram](https://t.me/ptrcnull) or send an [e-mail](mailto:hello@ptrcnull.me).
### Update (2021-12-03)
Thanks to an email I got from [Filip](https://github.com/filipkania), I was finally able to make it work!
It turned out that the missing piece of the puzzle was `--single-process` - it somehow forces CEF into submission
and while it's not perfect (segfault after closing the window), it launches successfully and even plays music (tested on PulseAudio and PipeWire).
![Spotify window, with song "Oh No!" by "Marina" shown paused, partially obscured by terminal window with command "./spotify --single-process"](/posts/spotify-on-musl/working.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB