Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926412 - kde-plasma/plasma-desktop: install Gentoo-customized mimeapps.list
Summary: kde-plasma/plasma-desktop: install Gentoo-customized mimeapps.list
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL: https://mail.kde.org/pipermail/distri...
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks: 926410 926828
  Show dependency tree
 
Reported: 2024-03-07 16:29 UTC by Sam James
Modified: 2025-01-25 03:58 UTC (History)
3 users (show)

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 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.
Comment 4 Larry the Git Cow gentoo-dev 2024-05-30 17:12:29 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=08c032bfaebdf01f173591151eeeca18c94c3a37

commit 08c032bfaebdf01f173591151eeeca18c94c3a37
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-05-30 17:11:25 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-05-30 17:12:09 +0000

    kde-plasma/plasma-desktop: RDEPEND on kde-plasma/plasma-mimeapps-list
    
    Bug: https://bugs.gentoo.org/926412
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-plasma/plasma-desktop/plasma-desktop-6.1.49.9999.ebuild | 1 +
 kde-plasma/plasma-desktop/plasma-desktop-9999.ebuild        | 1 +
 2 files changed, 2 insertions(+)

https://gitweb.gentoo.org/proj/kde.git/commit/?id=353ce216dea7a41992195d58969c18dfa304d274

commit 353ce216dea7a41992195d58969c18dfa304d274
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-19 12:52:52 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-05-30 17:09:10 +0000

    kde-plasma/plasma-mimeapps-list: add Gentoo preferences
    
    Bug: https://bugs.gentoo.org/926412
    Signed-off-by: Sam James <sam@gentoo.org>
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../plasma-mimeapps-list/files/mimeapps.list       | 80 +++++++++++++++++++++-
 1 file changed, 77 insertions(+), 3 deletions(-)

https://gitweb.gentoo.org/proj/kde.git/commit/?id=3ebc48dbe09300b92952424b815cbd1f10b34103

commit 3ebc48dbe09300b92952424b815cbd1f10b34103
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-09 23:09:53 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-05-30 17:08:31 +0000

    kde-plasma/plasma-mimeapps-list: new package; install our own mimeapps.list
    
    Start by importing kde-plasma/plasma-desktop's own mimeapps.list and updating
    the list in subsequent commits for easier review.
    
    Bug: https://bugs.gentoo.org/926412
    Signed-off-by: Sam James <sam@gentoo.org>
    Closes: https://github.com/gentoo/kde/pull/984
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../plasma-mimeapps-list/files/mimeapps.list       | 152 +++++++++++++++++++++
 kde-plasma/plasma-mimeapps-list/metadata.xml       |  11 ++
 .../plasma-mimeapps-list-1.ebuild                  |  26 ++++
 3 files changed, 189 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2024-06-12 15:29:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcf0b3d2922b8d44ffc8c80df8859f5ae20ecabb

commit fcf0b3d2922b8d44ffc8c80df8859f5ae20ecabb
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-06-07 20:42:10 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-06-12 15:28:38 +0000

    kde-plasma/plasma-desktop: RDEPEND on kde-plasma/plasma-mimeapps-list
    
    Also bump KFMIN to 6.3.0 for LIBEXECDIR change
    
    Bug: https://bugs.gentoo.org/926412
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../{plasma-desktop-6.0.90.ebuild => plasma-desktop-6.0.90-r1.ebuild}  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd1b087f56c6f7b3a0d54e5c6ff2b054a1808c4c

commit bd1b087f56c6f7b3a0d54e5c6ff2b054a1808c4c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-19 12:52:52 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-06-12 15:28:37 +0000

    kde-plasma/plasma-mimeapps-list: add Gentoo preferences
    
    Bug: https://bugs.gentoo.org/926412
    Signed-off-by: Sam James <sam@gentoo.org>
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../plasma-mimeapps-list/files/mimeapps.list       | 80 +++++++++++++++++++++-
 1 file changed, 77 insertions(+), 3 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2300b261d63ac9bb28c29b359cfd2ca7f9d2347

commit a2300b261d63ac9bb28c29b359cfd2ca7f9d2347
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-09 23:09:53 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-06-12 15:28:37 +0000

    kde-plasma/plasma-mimeapps-list: new package; install our own mimeapps.list
    
    Start by importing kde-plasma/plasma-desktop's own mimeapps.list and updating
    the list in subsequent commits for easier review.
    
    Bug: https://bugs.gentoo.org/926412
    Signed-off-by: Sam James <sam@gentoo.org>
    Closes: https://github.com/gentoo/kde/pull/984
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../plasma-mimeapps-list/files/mimeapps.list       | 152 +++++++++++++++++++++
 kde-plasma/plasma-mimeapps-list/metadata.xml       |  11 ++
 .../plasma-mimeapps-list-1.ebuild                  |  26 ++++
 3 files changed, 189 insertions(+)