Update flow-browser-bin desktop entry: fix Exec and TryExec paths for improved launcher detection.
Build and populate cache / tests (chiasson, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-25.05.tar.gz, chiasson) (push) Successful in 1m56s
Build and populate cache / tests (chiasson, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz, chiasson) (push) Successful in 1m47s
Build and populate cache / tests (chiasson, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz, chiasson) (push) Successful in 1m51s

This commit is contained in:
2026-01-12 18:24:07 -04:00
parent 41c3ebec4b
commit ac3834846f
+8 -1
View File
@@ -74,7 +74,14 @@ appimageTools.wrapType2 {
$out/share/applications/flow-browser.desktop
substituteInPlace $out/share/applications/flow-browser.desktop \
--replace-fail 'Exec=AppRun' 'Exec=${pname}'
--replace-fail 'Exec=AppRun' "Exec=$out/bin/${pname}"
# Help launchers detect the binary without relying on PATH.
if grep -q '^TryExec=' $out/share/applications/flow-browser.desktop; then
sed -i "s|^TryExec=.*|TryExec=$out/bin/${pname}|" $out/share/applications/flow-browser.desktop
else
echo "TryExec=$out/bin/${pname}" >> $out/share/applications/flow-browser.desktop
fi
# Keep the launcher name stable (avoid showing version suffixes in menus).
if grep -q '^Name=' $out/share/applications/flow-browser.desktop; then