Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916331 - net-im/mattermost-desktop-bin should declare mime type
Summary: net-im/mattermost-desktop-bin should declare mime type
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-27 10:59 UTC by Florian Manschwetus
Modified: 2023-11-09 07:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Manschwetus 2023-10-27 10:59:24 UTC
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;"
```
Comment 1 wiebel 2023-11-08 14:03:19 UTC
The issue became even more severe as the Oauth authentication breaks with the new mattermost server (>9.1), due to this missing entries.
Comment 3 Florian Manschwetus 2023-11-08 22:48:19 UTC
(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...
Comment 4 Larry the Git Cow gentoo-dev 2023-11-09 07:42:58 UTC
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(-)
Comment 5 Viorel Munteanu gentoo-dev 2023-11-09 07:45:23 UTC
Thank you for the fix.