Fix Exec= detection in nix-run.sh

Fixes #59
This commit is contained in:
Matthew Bauer 2020-05-09 15:28:40 -05:00
parent 2a8b914e1b
commit e0ea9901f7

View File

@ -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]/$@/")