From e0ea9901f789134c62a1d5c4c49c25613b62e6b4 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sat, 9 May 2020 15:28:40 -0500 Subject: [PATCH] Fix Exec= detection in nix-run.sh Fixes #59 --- nix-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-run.sh b/nix-run.sh index b81f193..fd924e4 100755 --- a/nix-run.sh +++ b/nix-run.sh @@ -54,7 +54,7 @@ run_linux_desktop_app () { shift cmd=$(grep '^Exec' $file | tail -1 | \ - sed 's/Exec=//;s/^"//;s/" *$/') + sed 's/Exec=//;s/^"//;s/" *$//') if ! [ -z "$@" ]; then cmd=$(echo "$cmd" | sed "s/%[fu]/$1/;s/%[FU]/$@/")