qemu: guard desktop file removal

The qemu.desktop file should only be attempted to be removed if available.
wip/yesman
daniel 3 years ago committed by Daniel Kahlenberg
parent bed33d185a
commit e74ae54da5
  1. 2
      pkgs/applications/virtualization/qemu/default.nix

@ -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

Loading…
Cancel
Save