Skip to content

Commit

Permalink
Run desktop-file-validate, addresses #166
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Jan 8, 2017
1 parent 1cfed00 commit 10bb2b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions recipes/meta/Recipe
Expand Up @@ -265,6 +265,7 @@ if [ -z "$DESKTOP" ] ; then
echo "desktop file not found, aborting"
exit 1
else
desktop-file-validate "$DESKTOP" || exit 1
ORIG=$(grep -o "^Exec=.*$" "${DESKTOP}" | head -n 1| cut -d " " -f 1)
REPL=$(basename $(grep -o "^Exec=.*$" "${DESKTOP}" | head -n 1 | cut -d " " -f 1 | sed -e 's|Exec=||g'))
sed -i -e 's|'"${ORIG}"'|Exec='"${REPL}"'|g' "${DESKTOP}"
Expand Down

0 comments on commit 10bb2b1

Please sign in to comment.