lv2 / pugl

A minimal portable API for embeddable GUIs
https://gitlab.com/lv2/pugl/
ISC License
174 stars 34 forks source link

Native file dialog API? #78

Closed falkTX closed 2 years ago

falkTX commented 2 years ago

Mostly a question, not a request. There is often a very handy thing plugins want but it is hard and painful to implement right - native file dialogs.

Although LV2 has ways to specify a file, it involves tying it to an lv2 patch parameter. It also only works to open files, not save them.

So I am wondering about your thoughts on such an API. Telling people to go use the regular tiny libs for such things (like osdialog or tinyfiledialogs) is IMO a bad idea, as they are awful for plugins:

drobilla commented 2 years ago

I think such a thing should exist, but is way out of scope for Pugl. If the current ones aren't good they should be fixed or replaced.

Such a library could perhaps go in lv2kit, but certainly not in Pugl itself.

Personally I like the host-mediated way anyway. Plugins should not be saving arbitrary files.