lxqt / xdg-desktop-portal-lxqt

A backend implementation for xdg-desktop-portal
GNU Lesser General Public License v2.1
22 stars 9 forks source link

Arbitrary file picker #16

Closed mid-kid closed 2 years ago

mid-kid commented 2 years ago

I'm looking for a way to use the xdg-desktop-portal to call arbitrary programs to help me pick a file. Ideally I'd be able to write a shell script presenting me a dialog with multiple options, one of which would for example be nsxiv -o, which returns a list of files picked, allowing me to pick images easily.

Seeing as how this portal essentially only implements file picking so far, doing so in very little code, I think it wouldn't be too hard for me to modify it to do what I want, but I'm wondering if this is something you might be interested in having, or whether I should just fork off.

If this isn't something that's possible due to the design of the D-Bus portal specification be sure to tell me too, I've done very little research yet, this has mostly been shower thoughts so far.

tsujan commented 2 years ago

Please use Discussions for ideas and questions. Sorry, there's no way to transfer this page to Discussions directly. You might want to copy-paste it there.