qemu: guard desktop file removal

The qemu.desktop file should only be attempted to be removed if available.
This commit is contained in:
daniel 2021-02-03 20:07:13 +01:00 committed by Daniel Kahlenberg
parent bed33d185a
commit e74ae54da5

@ -143,7 +143,7 @@ stdenv.mkDerivation rec {
postFixup = ''
# the .desktop is both invalid and pointless
rm -f $out/share/applications/qemu.desktop
test -e $out/share/applications/qemu.desktop && rm -f $out/share/applications/qemu.desktop
# copy qemu-ga (guest agent) to separate output
mkdir -p $ga/bin