Friday, 2026-03-20

*** amccarthy is now known as Guest554612:46
*** amccarthy_ is now known as amccarthy12:46
abrpoetaster: 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
poetasterThaodan_, made me a ticket to that effct. It should be doable though I was hoping to fix the broken dbus notifications first ;)16:28
poetasterabr, I really only need to be mime-type html handler, or?16:29
abrYeah he though the code was public already, I wanted to talk to you before I released it really...16:30
abrI 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
poetasterso harbour-tooter-open-url.desktop16:32
abryeah16:32
poetasterI think I had some dbus service ...16:33
abrif it's a post on another homeserver, I launch https://homeserver/authorize_interaction?uri=<encoded_uri>16:34
abrso that people could interact with the remote posts on their own server without having to do the login again16:35
abrI could possibly call some dbus, but I'd rather keep it open to whatever wants to catch those links16:35
poetasteryeah, the question is how to customise the home server ...16:36
poetasterabr, can I query your plugin?16:36
poetasterah, sorry, I just re-read the user application dir.16:37
abrI 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 that16:38
poetaster~/.local/share/applications/ you mean?16:39
abryeah16:39
abronce you know the homeserver the user's logged into, you could write the file out with that in.16:39
abrbut the question is if tooter will see that dir16:40
poetasterI do not think so.16:40
abrhmm, i'll have a think then16:40
abrthe alternative is to include all the most popular homeservers in the installed desktop file. but there are too many I think.16:41
poetasterway too many.16:41
poetasterOn the otherhand..... hmmm.16:41
poetasterI guess a first step is to at least offer to handle http links.16:42
poetasterI'll start testing it.16:44
abryeah. 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
abrI think it should be possible for tooter to be able to use the system account oauth too somehow. that would be cool.16:45
abrbut if anyone else has an idea of how to let tooter write a desktop file to ~/.local/share/applications/ at runtime...16:47
poetasteryeah, it would be nice to have account integration.16:57
poetasteryour source for the plugin is not public yet, correct?16:58
poetasterabr: https://forum.sailfishos.org/t/sailfish-community-news-11th-march-sdk-mimetypes/540917:08
abrno not yet sorry. I need to get some stuff merged into other repos before I can release it.17:09
abryeah that's the thing. it's easy to do in your main desktop file, but of course you don't know the homeserver on install17:12
poetasterAh, how fondly I remember building installers which were wizards that asked questions :)17:15
poetasteranother solution would be a new sheme: activitypub://17:16
poetasteror some such.17:16
abrwelcome to the installshield wizard!!17:23
abrooh i like activitypub://17:24
abri wonder if there's an established scheme already. if there isn't then there should be.17:24
abrcos having to associate with all the domains is a huge hack17:24
poetasteryeah, remeber typing gopher://17:24
abrhaha me too17:24
abri always thought schemes should have got more traction. all this url matching is a hack17:25
poetasterI'm afraid that the bluesky assholes would get in the way. I very much doubt we'll see a scheme get formalized.17:25
poetasterright your are.17:25
poetastertoo many defacto monopolies in the standards bodies.17:25
abrsame as it ever was17:27
poetasteryup. I just thought about how i do it with happy camper, the bandcamp downloader thingy17:30
poetasterI kept that to a straight 'chooser' and not a url handler for two reasons;17:31
poetaster1. sometimes I just want the simple webview when looking at something17:31
poetaster2. Sometimes I want to open a bandcamp url in a full browser17:32
poetasterI'm not sure I want to take over all bandcamp links.17:32
poetasterbut mastodon is different.17:33
poetasterok, 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 trigpoint23:21

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!