Classic confinement for hey-mail

What GUI toolkit are you using for the file picker? If you’re using GTK or Qt, you might be able to use the XDG desktop portal to access any files. The files portal opens a native file chooser on the host system and whichever file the user chooses, the snap gets access to.

You can also use the portals dbus API directly, if it’s not supported in the toolkit, though that probably requires significant changes in the application.

2 Likes