mal | b100dian[m]: that is just one of the plugins, also the one with -hidl | 02:00 |
---|---|---|
mal | *without -hidl | 02:00 |
nephros | b100dian[m]: I'm not pushing PW at all, many Portals can be done without it. | 07:42 |
nephros | Sad thing is, it is a drop-in replacement for PA *except* it can't load PA plugins. | 07:43 |
nephros | But, it does run on sfos. n one test phone i have it running parallel to PA, and tunneling audio to sfos PA. | 07:45 |
nephros | except it doesn't make a sound and I can't figure out why. | 07:46 |
nephros | plus, PW also does video, so new plugins would have to be there integrating with ?hybris? ?lipstick? ?wayland? | 07:48 |
piggz[m] | rinigus: when the portal code progresses, ill probably do a pr for qt-runner to depend on it, and add the required env var | 09:42 |
rinigus | piggz: nice! | 09:43 |
nephros | piggz[m]: in the mood for testing once more? AFAICS calling FileChooser.OpenFile should now present a file picker system dialog. | 18:17 |
piggz[m] | sure! | 18:18 |
nephros | piggz[m]: lovely. All you need is new xdg-desktop-portal-amber packages. | 18:19 |
piggz[m] | this is what amber prints | 18:30 |
piggz[m] | [D] unknown:0 - FileChooser.OpenFile called with parameters:... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/wbhjMUAwBVuukulBvxyfpfBR>) | 18:30 |
nephros | muh. | 18:31 |
nephros | Can you try to run /usr/bin/xdg-desktop-portal-amber-ui --prestart manually, and then trigger the OpenFile again? | 18:32 |
nephros | its still a mystery when exactly all those dbus registrations happen, and by what. | 18:35 |
nephros | (mystery to me that is) | 18:36 |
piggz[m] | that binary doesnt exist | 18:36 |
nephros | aha. | 18:37 |
nephros | that is from xdg-desktop-portal-amber-qml | 18:37 |
nephros | latest build is xdg-desktop-portal-amber-qml-1.0.0+poc.20240303175538.114ac72-1.141.1.jolla.aarch64 | 18:38 |
piggz[m] | ooo, some success | 18:39 |
nephros | actually no, latest ist 1.142.1 | 18:39 |
piggz[m] | nephros: almost ... dialog is shown, but after accepting file there is some issue and its not shown in tokodon | 18:45 |
piggz[m] | can see any logs in either -amber or tokodon | 18:45 |
piggz[m] | this is dbus-monitor https://paste.mozilla.org/Xw2ieFwU | 18:48 |
piggz[m] | for the repoy | 18:49 |
nephros | Brilliant, thanks for that. I wasn't sure the response was sent at all. | 18:52 |
nephros | I *think* the signal that is sent is the right one, likely the format/signature is wrong for what Tokodon expects. | 18:53 |
piggz[m] | nephros: when i posted the "toot" ... the text went ok, but it claimed there was an error reported from the masttodon server for some media | 18:54 |
nephros | So your test case is a toot with image attachment? | 18:56 |
piggz[m] | yes | 18:56 |
piggz[m] | https://fosstodon.org/api/v1/media server replied | 18:56 |
piggz[m] | Unprocessable Content | 18:56 |
piggz[m] | no idea what was posted though | 18:57 |
nephros | Aha. Well, right now I'm returning a bare path. Maybe a file:/// uri is expected, or a file handle (please no). Something like that. | 18:57 |
nephros | I'll llook into the Response spec. | 18:57 |
nephros | Still, the fact that a file selector is shown is success. | 18:57 |
nephros | "Backends must normalize URIs of locations selected by the user into “file://” URIs. URIs that cannot be normalized should be discarded." | 19:00 |
nephros | So lets try that :) | 19:00 |
piggz | yeah i just tested on desktop | 19:02 |
piggz | https://paste.mozilla.org/DUuUX699 | 19:03 |
nephros | Ah! Useful. We want an array of file:// uris. | 19:05 |
mal | also notice the different, variant string vs variant | 19:08 |
mal | not sure if important | 19:08 |
mal | nephros: ^ | 19:08 |
nephros | Yes. Also I'm not clear whether the dialog should directly answer on the Request object, or whether the backend should wait for the response and return it itself. | 19:09 |
nephros | mal: those dbus arg signatures are always important :) | 19:10 |
nephros | .. and the all the mashalling is annoyingly opaque, so thanks a lot for pointing int out. | 19:16 |
nephros | (completely - or not quite - unrelated rcomplaint): in ancient times, we had sendmail.cf. And everyone agreed it was terrible. Looking at "modern" Linux, it appears people did not learn from sendmail.cf. | 19:21 |
piggz[m] | nephros: how many interfaces are you implementing? | 19:44 |
piggz[m] | nephros: also, where does the -amber name come from? | 19:53 |
piggz[m] | why not -lipstick ? | 19:53 |
nephros | How many I want to implement? t fist it was low-hanging-fruit, so Screenshot, Wallpaer, Email | 20:53 |
nephros | But then you came around with an actual real-world usable thing, File dialog for Kirigami. | 20:53 |
nephros | Why amber not Lipsick? Meh, naming things is hard. Nemo is also a candidate. | 20:55 |
nephros | I just picked amber at random. | 20:55 |
nephros | Maybe depending on how interaction between community and Jolla/Jollyboys works out, community parts are -amber and Jolla parts are -jolla | 20:57 |
nephros | but I think, after I figured out how to correctly return that file chooser results that is as far as I will take it, | 20:58 |
nephros | when that one is working I'll call it a proper PoC, do some documentation and bring it to a Community Meeting. | 21:01 |
piggz[m] | doenst need a community meeting, its gonna be great, get it in chum so i can depend on it :) | 21:05 |
nephros | piggz[m]: I would agree, but it looks like some things aught to be implemented in closed-source parts. So if they want Portals to happen, they should either implement those things, or opensource the components and let the community do it. | 21:11 |
nephros | piggz[m]: I would agree, but it looks like some things aught to be implemented in closed-source parts. So if they want Portals to happen, they should either implement those things, or opensource the components and let the community do it. | 21:15 |
nephros | whoops, sorry. | 21:15 |
piggz | heh | 21:20 |
piggz[m] | you dont need to implement all the APIs .. just start with whats useful. and add new over time as theyre worked out/required | 21:26 |
nephros | piggz[m]: precisely. https://github.com/nephros/xdg-desktop-portal-amber/blob/poc/doc/SailfishOS_Iface_Table.md is an anaysis/roadmap/plan kind of thing. | 21:29 |
nephros | Something like the Email interfact is not strictly necessary but is easy to do and it works. | 21:29 |
nephros | Other stuff would be more useful but far more complext to do right. | 21:30 |
piggz[m] | ah, useful doc... | 21:30 |
piggz[m] | do you need a status/complete column? | 21:31 |
nephros | piggz[m]: Eventually, yes, Right now none of the interfaces are spec-compliant, some are available, two even work. | 21:41 |
* nephros is calling it a day for now. nightnight | 21:44 | |
piggz[m] | gn | 21:47 |
mal | nephros: at least don't name it -nemo, it's legacy naming and should not be used anymore, unfortunately it would be too much work to get rid of it completely | 22:34 |
mal | piggz[m]: before getting that into chum would be nice to decide the name properly | 22:35 |
piggz[m] | yeah .. nephros can name it as he feels fit i guess .... is there ia possibility of jolla creating a desktop-portal in the future that could name clash? | 22:37 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!