Haelwenn /элвэн/ :triskell: (npub1ysu…2jyl) there's xdg-desktop-portals for those now
but that entails adding dbus support for you app... and if you're writing a simple gui app you probably don't want such a complex dependency
(which once again i'm mad at the over-reliance on dbus for configuration. this could've been a standardized config file format like mimeapps but noooooo dbus)