| *** amccarthy is now known as Guest5546 | 12:46 | |
| *** amccarthy_ is now known as amccarthy | 12:46 | |
| abr | poetaster: do you think tooter could accept links from my mastodon plugin? the official android app has very limited support: only for posts on their own servers. | 16:19 |
|---|---|---|
| poetaster | Thaodan_, made me a ticket to that effct. It should be doable though I was hoping to fix the broken dbus notifications first ;) | 16:28 |
| poetaster | abr, I really only need to be mime-type html handler, or? | 16:29 |
| abr | Yeah he though the code was public already, I wanted to talk to you before I released it really... | 16:30 |
| abr | I think it's as simple as creating a new desktop file in the user applications dir after login, with MimeType=x-url-handler/mastodon.social or whatever their homeserver is. that way it'll catch the links wherever they live. | 16:32 |
| poetaster | so harbour-tooter-open-url.desktop | 16:32 |
| abr | yeah | 16:32 |
| poetaster | I think I had some dbus service ... | 16:33 |
| abr | if it's a post on another homeserver, I launch https://homeserver/authorize_interaction?uri=<encoded_uri> | 16:34 |
| abr | so that people could interact with the remote posts on their own server without having to do the login again | 16:35 |
| abr | I could possibly call some dbus, but I'd rather keep it open to whatever wants to catch those links | 16:35 |
| poetaster | yeah, the question is how to customise the home server ... | 16:36 |
| poetaster | abr, can I query your plugin? | 16:36 |
| poetaster | ah, sorry, I just re-read the user application dir. | 16:37 |
| abr | I remember whisperfish was writing to that dir at one point, so I wondered if it would be possible for tooter to write a desktop file to there. but now I wonder if sailjail will let you do that | 16:38 |
| poetaster | ~/.local/share/applications/ you mean? | 16:39 |
| abr | yeah | 16:39 |
| abr | once you know the homeserver the user's logged into, you could write the file out with that in. | 16:39 |
| abr | but the question is if tooter will see that dir | 16:40 |
| poetaster | I do not think so. | 16:40 |
| abr | hmm, i'll have a think then | 16:40 |
| abr | the alternative is to include all the most popular homeservers in the installed desktop file. but there are too many I think. | 16:41 |
| poetaster | way too many. | 16:41 |
| poetaster | On the otherhand..... hmmm. | 16:41 |
| poetaster | I guess a first step is to at least offer to handle http links. | 16:42 |
| poetaster | I'll start testing it. | 16:44 |
| abr | yeah. apps have done that when they've deserved it a lot less. it means everyone will get a choice dialog when they launch a link from an app, but I guess a fair few do anyway with an android browser. | 16:45 |
| abr | I think it should be possible for tooter to be able to use the system account oauth too somehow. that would be cool. | 16:45 |
| abr | but if anyone else has an idea of how to let tooter write a desktop file to ~/.local/share/applications/ at runtime... | 16:47 |
| poetaster | yeah, it would be nice to have account integration. | 16:57 |
| poetaster | your source for the plugin is not public yet, correct? | 16:58 |
| poetaster | abr: https://forum.sailfishos.org/t/sailfish-community-news-11th-march-sdk-mimetypes/5409 | 17:08 |
| abr | no not yet sorry. I need to get some stuff merged into other repos before I can release it. | 17:09 |
| abr | yeah that's the thing. it's easy to do in your main desktop file, but of course you don't know the homeserver on install | 17:12 |
| poetaster | Ah, how fondly I remember building installers which were wizards that asked questions :) | 17:15 |
| poetaster | another solution would be a new sheme: activitypub:// | 17:16 |
| poetaster | or some such. | 17:16 |
| abr | welcome to the installshield wizard!! | 17:23 |
| abr | ooh i like activitypub:// | 17:24 |
| abr | i wonder if there's an established scheme already. if there isn't then there should be. | 17:24 |
| abr | cos having to associate with all the domains is a huge hack | 17:24 |
| poetaster | yeah, remeber typing gopher:// | 17:24 |
| abr | haha me too | 17:24 |
| abr | i always thought schemes should have got more traction. all this url matching is a hack | 17:25 |
| poetaster | I'm afraid that the bluesky assholes would get in the way. I very much doubt we'll see a scheme get formalized. | 17:25 |
| poetaster | right your are. | 17:25 |
| poetaster | too many defacto monopolies in the standards bodies. | 17:25 |
| abr | same as it ever was | 17:27 |
| poetaster | yup. I just thought about how i do it with happy camper, the bandcamp downloader thingy | 17:30 |
| poetaster | I kept that to a straight 'chooser' and not a url handler for two reasons; | 17:31 |
| poetaster | 1. sometimes I just want the simple webview when looking at something | 17:31 |
| poetaster | 2. Sometimes I want to open a bandcamp url in a full browser | 17:32 |
| poetaster | I'm not sure I want to take over all bandcamp links. | 17:32 |
| poetaster | but mastodon is different. | 17:33 |
| poetaster | ok, tooter does have a dbus service (which is broken) but I'll fix that anyway. | 17:33 |
| rubdos[m] | poetaster: I don't think we ever wrote there, but I might be wrong. | 18:32 |
| *** trigpoin1 is now known as trigpoint | 23:21 | |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!