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
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user