Skip to content

app: Keep GApplication alive when running in background

Felipe Borges requested to merge wip/run-in-bg into master

A long standing UX issue we have in Boxes are the "run in background" virtual machines. In a typical bare metal session, Boxes wouldn't suspend these VMs and instead keep them running thanks to libvirtd. But for the Flatpaked apps, the lifetime of the libvirt daemon is tied to the lifetime of Boxes itself, therefore we need to manage it.

This solution identifies whether the "run in bg" VMs are running, and if so, it will just hide the Boxes window and keep the GApplication running in the background. This allows for jumping back to Boxes if the user wants.

We also throw a notification indicating that a virtual machine is running in the background, so the user has an UI to access the VM.

Fixes #379 (closed)

Merge request reports