sparkleshare: Remove fallback to Flatpak image

The upstream .desktop file has a fallback to flatpack. It is only intended to run if `sparkleshare` isn't in the user's path. But to make matters even worse it will also run if `sparkleshare` exists with a failure code.

Remove this fallback to ensure that users don't download and run unpinned and untrusted code from the internet.
This commit is contained in:
Kevin Cox 2023-12-08 20:38:41 -05:00
parent 09ec6a0881
commit 197b168f99
No known key found for this signature in database
GPG key ID: 9BB92CC1552E99AA

View file

@ -49,6 +49,9 @@ stdenv.mkDerivation rec {
];
patchPhase = ''
# SparkleShare's default desktop file falls back to flatpak.
sed -ie "s_^Exec=.*_Exec=$out/bin/sparkleshare_" SparkleShare/Linux/SparkleShare.Autostart.desktop
# Nix will manage the icon cache.
echo '#!/bin/sh' >scripts/post-install.sh
'';