Hmm, it sounds strange because other things connect just fine and GTS’s documentation shows curl commands to explain how to authenticate a client application. I also am the owner of my instance so I know there is nothing extra.
But, GTS does have some internal server-side checks and Tooter might trip there somehow. Is there anything I can do to obtain more info on Tooter’s process? Maybe I can open an issue with the GTS developers, if nothing else works.
I tried both with the dbus method names (and the service path /openUrl) with the correct desktop entries and that led to the app not launching from lipstick at all. I tried with the DBUSadapater in QML (which is what I had working) and it was a bit better, though if I leave the entries in desktop, the app does not launch from lipstick. It will work fine (with either) from a terminal.
I tried the minimal QML only version copying the notes app, but also wound up with an app that won’t launch from lipstick.
Ok, that confuses the issue even more so I see DBusActivatable=true and the declaration/instantiation in the main.cpp, the method from the notes app seems a good deal less work (ie. just desktop file + QML). Why is this preferable?
EDIT: tried this as well and I still can’t launch the app. There was an issue with naming (the harbour prefix idiocy) but I don’t believe that’s in play.
Maybe dbus-monitor would help see what it’s trying to call. I know it needs to be aligned with the Sailjail org and app name, as any service that doesn’t conform to that won’t be visible from outside the sandbox. But that looks fine.
I’ll give that a try. What I have working is a second, open-url desktop file (with service) which is not harbour conform but works. In either case, just for testing I’ve been using the QML method
With variations of service, iface, path and none of if makes a difference. If I use any means of declaring dbus methods in the primary desktop file, lipstick won’t launch it. And I’ve double checked there are not stale files around.
One clue I had earlier was that the App name cannot have a dash, so I dealt with that (this is some time ago…
In any case, one can see the DBus methods with introspection, regardless what’s in the desktop file. The open-url one just facilitates the mime type/scheme handling.
There is a fundamental issue with your links. Status/replies, etc that I get from my instance do not have the same status_ids as the originals. You produce links to the originals it seems. This means there is no way for me to actually link to a boost as I would fetch it via my account.
] expression for status_link:38 - https://icosahedron.website/users/YkkPanels/statuses/117196325096728556
[D] expression for status_link:39 - ["https:","","icosahedron.website","users","YkkPanels","statuses","117196325096728556"]
[D] expression for status_link:40 - 7
[D] onTriggered:136 - Scrolling to status_id: 117196325375904151 at index 0
The last line status id, 117196325375904151 is the one for my mastodon instance. Your links are generic, which is fine for a web browser but won’t work with tooter.
The only thing I can do with your links is to send people to the persons profile since I can launch search for the @ which at least get’s you in the vicinity. So, when a link from your view is resolved, I present the search field filled with @username and the results can immediately be clicked. Not really idea.
I’m not sure if the plugin can do much differently and remain compatible with browsers. It does receive that other ID, but can’t really pass it on, and instead relies on the authorize_interaction controller to resolve it. Even when I add the ap: scheme there isn’t really anywhere to put it then either.
Maybe you can do something like this?
GET /api/v2/search?q=<encoded url>&type=statuses&resolve=true&limit=1
That’s true, though it is a a downside of the account integration.
I’m not even sure what that is? Tooter does oauth once and then stores a token so it doesn’t use that. The mastodon API implementation from tooter is ancient so it’s probably just not covered. v2 stuff is generally an add on in the workerscripts.
Announcing version 1.4.2 with fixes for redundant links, other bug fixes, and somewhat better integration with mastodon links from the account plugin. The latter only from chum coming to a store near you…
Does this mean that you cracked somehow how to open the posts from the account plugin? Or as you explained, does it only open the profile of the person who posted?
It’s still opening to the user search with the user who was found displayed. I wanted to get other fixes out, so I’m still working on the ‘search for post’ variant …