From c7c7a0a18d92d810685f32bebe72bc78a1fe56d9 Mon Sep 17 00:00:00 2001 From: guihkx <626206+guihkx@users.noreply.github.com> Date: Mon, 14 Jul 2025 10:27:26 -0300 Subject: [PATCH] Disable the Zygote process to prevent it from randomly crashing This launches Spotify with --no-zygote by default, in order to prevent the Zygote process from randomly crashing and generating useless coredumps. This problem is not exclusive to the Flatpak package. See: - https://community.spotify.com/t5/Desktop-Linux/Spotify-binary-frequently-crashing-and-dumping-core-Ubuntu/td-p/6534369 Fixes #320 --- spotify-bin | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spotify-bin b/spotify-bin index a510140..d9e8565 100755 --- a/spotify-bin +++ b/spotify-bin @@ -53,6 +53,10 @@ elif [ "${SCALE_FACTOR}" != "1.0" ]; then EXTRA_FLAGS+=("--force-device-scale-factor=${SCALE_FACTOR}") fi +# Disable the Zygote process to prevent it from randomly crashing. +# https://community.spotify.com/t5/Desktop-Linux/Spotify-binary-frequently-crashing-and-dumping-core-Ubuntu/td-p/6534369 +EXTRA_FLAGS+=("--no-zygote") + env PULSE_PROP_application.icon_name="com.spotify.Client" LD_PRELOAD=/app/lib/spotify-preload.so${LD_PRELOAD:+:$LD_PRELOAD} /app/extra/bin/spotify "${EXTRA_FLAGS[@]}" "$@" & if [ $URI_HANDLED -eq 1 ]; then