Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 926412

Summary: kde-plasma/plasma-desktop: install Gentoo-customized mimeapps.list
Product: Gentoo Linux Reporter: Sam James <sam>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: CONFIRMED ---    
Severity: normal CC: kocelfc, leio
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://mail.kde.org/pipermail/distributions/2024-February/001480.html
See Also: https://invent.kde.org/frameworks/kservice/-/merge_requests/181
https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2030
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 926410, 926828    

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-07 16:29:39 UTC
See https://mail.kde.org/pipermail/distributions/2024-February/001480.html.

"""
In plasma 6 we are moving away from the KDE-specific InitialPreference
keys in desktop files [1] and instead install a mimeapps list [2] as
per [3]. You'll want to make sure that you install suitable
mimeapps.list(s) to set up things correctly for 3rd party apps such as
libreoffice.

[1] https://invent.kde.org/frameworks/kservice/-/merge_requests/181
[2] https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2030
[3] https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-1.0.1.html
"""
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-07 16:53:51 UTC
Fedora did https://pagure.io/fedora-kde/SIG/issue/455.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-07 16:54:49 UTC
Note that kde-plasma/plasma-desktop currently installs its own with upstream preferences that we should either drop or override via /etc/xdg. Probably the latter.
Comment 3 Mart Raudsepp gentoo-dev 2024-04-02 18:14:04 UTC
See also https://github.com/mgorny/mimelist-gen that lets you feed it a list of your preferred desktop files, spitting out the ${XDG_MENU_PREFIX}mimeapps.list (or was it ${XDG_SESSION_DESKTOP}-mimeapps.list ?) from it. Should allow multiple apps per MIME type based on the desktop files order.