Closed uncivilgentleman closed 2 years ago
This should launch an app chooser dialog which is part of xdg-desktop-portal (Portals). What's your desktop environment? Does it have xdg-desktop-portal and a frontend to it (-gtk, -gnome, -kde)?
I'm on Pop!_OS 22.04 and their Cosmic version of GNOME. Reading the documentation for xdg-desktop-portal while scrolling through the permissions for Gnome Boxes in Flatseal it doesn't appear to have those permissions. I'm not sure how to add them though. I added org.freedesktop.portal.Desktop
to System Bus
but I'm not sure where xdg-desktop-portal-gtk
or xdg-desktop-portal-gnome
belong in Flatseal. The Portals section only has toggles for things like microphones and cameras.
Can anyone reproduce my issue or is it just an on my machine thing? I was counting on the fact it was easy to reproduce.
This has nothing to do with permissions.
Boxes uses the standard GLib.AppInfo.launch_default_for_uri ()
API to request the system to open a file.
This API will use Portals when the requesting app is sandboxed. So this is likely an issue with your distro failing at distributing xdg-desktop-portal and xdg-desktop-portal-gtk.
Do other app-chooser dialogs work for your sandboxed/flatpaked apps?
I figured out the issue, it was my fault. I turned off full host
access and specifically added the directories I thought Boxes should have access to. As I run things in VMs that I don't trust I wanted to beef up security as much as possible. I should have thought of this sooner but everything else worked so I didn't think it was related.
Turning back on full host
access for the flatpak fixed the issue. I'm sorry about wasting your time.
No problem! I'm glad things are working for you. Enjoy Boxes!
On a VM's Preferences page clicking the Edit Configuration button prompts asking to create a snapshot first (as it should) but regardless of my choice of yes or no it never opens the VM's configuration.