about summary refs log tree commit diff
path: root/pkgs/applications/version-management/sparkleshare
diff options
context:
space:
mode:
authorKevin Cox <kevincox@kevincox.ca>2023-12-08 20:38:41 -0500
committerKevin Cox <kevincox@kevincox.ca>2023-12-08 20:38:41 -0500
commit197b168f990680ed941900b3673c841b3f729a26 (patch)
treeaa9c7fa9b577b66b931a9ecec13b31b8fa1de461 /pkgs/applications/version-management/sparkleshare
parent09ec6a0881e1a36c29d67497693a67a16f4da573 (diff)
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.
Diffstat (limited to 'pkgs/applications/version-management/sparkleshare')
-rw-r--r--pkgs/applications/version-management/sparkleshare/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/sparkleshare/default.nix b/pkgs/applications/version-management/sparkleshare/default.nix
index a13f25e681955..ef7da9d880bfb 100644
--- a/pkgs/applications/version-management/sparkleshare/default.nix
+++ b/pkgs/applications/version-management/sparkleshare/default.nix
@@ -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
   '';