Skip to content

Draft: flatpak: Patch libvirt to use shorter paths for the qemu process

Felipe Borges requested to merge libvirt-socket-path-long-2022 into main

Similarly to issue #267 (closed), now users are seeing an issue where libvirt errs "Failed to start QEMU binary /app/bin/qemu-system-x86_64 for probing: qemu-system-x86_64: -qmp unix:/sysroot/home/redactedredactedredacte/.var/app/org.gnome.Boxes/config/libvirt/qemu/lib/qmp-ZCXGK1/qmp.monitor,server=on,wait=off: UNIX socket path '/sysroot/home/redactedredactedredacte/.var/app/org.gnome.Boxes/config/libvirt/qemu/lib/qmp-ZCXGK1/qmp.monitor' is too long Path must be less than 108 bytes"

Let's use XDG_RUNTIME_DIR for Flatpak builds instead of the fully blown $HOME/.var/app/org.gnome.Boxes/ prefix that we get.

Fixes #784

Merge request reports