Conversation
|
It looks like from our prior art on the linked issue that it might be valuable to design this from the start as accepting a string array for the files. This makes sense for example if you want to select 3 or 4 things in Photos and then share those in an email |
|
Maybe a little soon, since you started on working on it now, but..
Well, we would need to provide the DBus frontend, backends aren't exposed to the sandbox, it would end begining a new If the idea is of a backend-less portal (since it's a non-standard portal like the IBus and Tracker ones) this shouldn't be exported in the for the frontend we could use a
IMHO, the Share Portal and OpenURI Portal are different user cases, with the OpenURI begin the better in the case of a "Open with…" menu.
we could use the Desktop Actions if the application declares that support the content_type, but i think that can show a lot of false positives. anyway...
this seem duty of the frontend (assuming this is only a backend), like how the AppChooser don't search for the applications or update the choices by itself.
I though about it when thinking in a contractor portal, the problem is the method call need to be done from inside the sandbox, because the app-id is get from the call itself, not as a argument. Also, calling the backends directly seems silly since the frontend do validation and provide/convert the arguments that the backend expect (for example, the attachements on the Mail portal are file descriptors, but the backend receive uris instead), and would make this portal be more complex since we would need to do the validation by ourselves. |
Sets up a dummy share portal to start hacking on! Fixes #49
Todo: