emersion / xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots
MIT License
580 stars 54 forks source link

Feature Request: Expose portal request arguments to chooser_cmd #243

Closed monkz closed 1 year ago

monkz commented 1 year ago

I like to create a chooser that is a little bit more "intelligent". Like preselecting sources in certain situations. Therefore, it would be nice to gain information about the request that triggered the invocation of the chooser_cmd.

Would it be possible to hand over this kind of information via environment variables?

https://github.com/flatpak/xdg-desktop-portal/blob/main/data/org.freedesktop.impl.portal.ScreenCast.xml#L131

monkz commented 1 year ago

Found https://github.com/emersion/xdg-desktop-portal-wlr/issues/169 mine would be a duplicate then