The desktop file generated by the ebuild should declare mime type "x-scheme-handler/mattermost" and include "%U" in command, so browser callbacks to applications work as expected. Reproducible: Always Steps to Reproduce: 1.connect to mattermost server, requiring browser to authenticate 2.authenticate in popped up browser session 3.confirm xdg open of mattermost desktop Actual Results: nothing happens, mime type error in xsession-log Expected Results: mattermost session in desktop client gets authenticated based on retrieved token ``` make_desktop_entry "${MY_PN} --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto %U" \ Mattermost "${MY_PN}" "Network;InstantMessaging;" "MimeType=x-scheme-handler/mattermost;" ```
The issue became even more severe as the Oauth authentication breaks with the new mattermost server (>9.1), due to this missing entries.
https://mattermost.atlassian.net/browse/MM-55275
(In reply to wiebel from comment #1) > The issue became even more severe as the Oauth authentication breaks with > the new mattermost server (>9.1), due to this missing entries. Most likely I hit exactly this, so change the ebuild as I described below. then it just works...
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5cbbc5defd3ffec03ca5854a7af11021c5b5117 commit e5cbbc5defd3ffec03ca5854a7af11021c5b5117 Author: Viorel Munteanu <ceamac@gentoo.org> AuthorDate: 2023-11-09 07:41:07 +0000 Commit: Viorel Munteanu <ceamac@gentoo.org> CommitDate: 2023-11-09 07:42:44 +0000 net-im/mattermost-desktop-bin: declare mime type Fix launching from browser. Closes: https://bugs.gentoo.org/916331 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org> ...ktop-bin-5.5.1.ebuild => mattermost-desktop-bin-5.5.1-r1.ebuild} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Thank you for the fix.