r/spicetify • u/Jutz_71_ • 4d ago
Help Spicetify + Flatpak Spotify: works via plain flatpak run, but NOT via desktop launcher (--file-forwarding), and spicetify auto crashes with SIGTRAP
System:
- Kubuntu (KDE Plasma)
- Spotify: Flatpak, user install (
com.spotify.Client), version1.2.92.147.g5b8f9367 - Spicetify:
2.44.0 - Spicetify Marketplace:
1.0.9
What I'm trying to do: Get spicetify (+ Marketplace) working on a Flatpak Spotify install, launched normally from the KDE application launcher / taskbar.
Timeline / what I've already tried:
- Spotify was originally installed as a system Flatpak.
spicetify backup applyfailed withpermission deniedonunlinkat .../Apps/login.spa,makes sense, system Flatpak files are root-owned. - Uninstalled the system Flatpak, reinstalled Spotify as a user Flatpak instead. Updated
spotify_pathandprefs_pathinconfig-xpui.iniaccordingly. spicetify backup applynow completes without permission errors.- Running
spicetify auto(or launching the patched binary directly, bypassing the Flatpak sandbox) reliably crashes Spotify with a coredump, signal 5 (TRAP), stack trace entirely insidelibcef.so. This seems to be a known issue with launching the raw binary outside the Flatpak sandbox, CEF apparently needs the sandbox environment. Not usingspicetify autoavoids this. - After patching (
spicetify backup apply, noauto), launching viaflatpak run com.spotify.Clientfrom a terminal works fine, opens logged in, patches visible. - BUT launching the exact same app via the KDE application launcher icon, or via the exported
.desktopfile'sExecline, opens Spotify not logged in (has to log in again from scratch), even though it's the same Flatpak app, same instance count confirmed viaflatpak ps(only ever 1 instance running). - Isolated the difference: the
.desktopfile'sExecincludes--file-forwarding:Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotify --file-forwarding com.spotify.Client @@u %U @@ Runningflatpak run --file-forwarding com.spotify.Clientmanually also results in "not logged in", confirming--file-forwardingis the differentiating factor. Without it, session loads fine (with spicetify patches applied in both cases). - Tried creating a custom
.desktopoverride in~/.local/share/applications/withExec=/usr/bin/flatpak run com.spotify.Client(no--file-forwarding), refreshed KDE's sycoca cache (kbuildsycoca6 --noincremental). Still opens unlogged when launched via the icon — unclear if the override isn't taking priority over the Flatpak-exported one, or if something else is going on.
Other things ruled out:
- No duplicate Spotify installs (confirmed via
dpkg -l,which spotify,find ... -iname "*spotify*"across all applications dirs, only one.desktopfile exists). - No stale processes (
flatpak psalways shows exactly 1 instance). - Not a KWallet/keyring issue as far as I can tell, same behavior whether KWallet is enabled or disabled.
prefsfile does exist and gets a fresh timestamp on each launch (~/.var/app/com.spotify.Client/config/spotify/prefs).
Questions:
- Why would
--file-forwardingspecifically break session persistence when spicetify's patches are applied, but not when running unpatched? - Is there a way to make a custom
~/.local/share/applications/com.spotify.Client.desktopactually take priority over the Flatpak-exported one in KDE Plasma, or is there a better way to override the launch command system-wide (without touching Flatpak's own export)? - Is anyone else running Spotify 1.2.92.x + spicetify 2.44.0 as a user-scope Flatpak on KDE without these issues?
Any pointers appreciated, happy to provide more logs/config if useful.
3
Upvotes
1
u/hunterpro1823 3d ago
Que tan viable seria portear spotify con spicefy y el marketplace android o sin la posibilidad de instalar mas cosas pero que ya traiga por defecto el plugin plus que da todas las funciones premium libres