flatpak / xdg-desktop-portal

Desktop integration portal
https://flatpak.github.io/xdg-desktop-portal/
GNU Lesser General Public License v2.1
572 stars 188 forks source link

Search in $XDG_DATA_DIRS for portals #603

Open concatime opened 3 years ago

concatime commented 3 years ago

Hi, just like how D-Bus finds services, could you search in XDG_DATA_DIRS for portals?

I recommend this logic:

And quite honestly, with this logic, XDG_DESKTOP_PORTAL_DIR can be dropped all together, but that would be a breaking change.

WDYT?

podiki commented 3 years ago

I like this idea, can keep XDG_DESKTOP_PORTAL_DIR around, but using the standard XDG directories makes sense. Related on this front, see the issue I just filed #616 (doesn't handle multiple directories).