Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948681 - kde-plasma/plasma-mimeapps-list-2: installs a system-wide config /etc/xdg/mimeapps.list rather than a DE-specific one
Summary: kde-plasma/plasma-mimeapps-list-2: installs a system-wide config /etc/xdg/mim...
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:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-01-25 03:49 UTC by Fat-Zer
Modified: 2025-01-25 10:53 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 Fat-Zer 2025-01-25 03:49:42 UTC
kde-plasma/plasma-mimeapps-list-2 installs `/etc/xdg/mimeapps.list`. According to the spec[1], it's a system-wide config and kde shouldn't try to hijack it. It should rather be put into some DE-specific location, probably `/usr/share/applications/KDE-mimeapps.list` or at most `/etc/xdg/KDE-mimeapps.list`.

[1]: https://specifications.freedesktop.org/mime-apps-spec/1.0.1/file.html

Reproducible: Always
Comment 1 Alfred Wingate 2025-01-25 03:56:14 UTC
kde-plasma/plasma-desktop currently installs /usr/share/applications/kde-mimeapps.list. 

Im thinking installing to the distribution wide location and then worrying later if gnome needs similar treatment.
Comment 2 Fat-Zer 2025-01-25 04:27:18 UTC
(In reply to Alfred Wingate from comment #1)
> kde-plasma/plasma-desktop currently installs
> /usr/share/applications/kde-mimeapps.list. 
> 
> Im thinking installing to the distribution wide location and then worrying
> later if gnome needs similar treatment.

But those defaults will affect other DEs, which is not desirable.

Moreover, kde-plasma/plasma-desktop depends upon kde-plasma/plasma-mimeapps-list, so why would you need to install them both? Or why do you need to maintain it as a separate package rather just patch the kde-plasma/plasma-desktop's one?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-25 04:30:52 UTC
(In reply to Fat-Zer from comment #2)
> (In reply to Alfred Wingate from comment #1)
> > kde-plasma/plasma-desktop currently installs
> > /usr/share/applications/kde-mimeapps.list. 
> > 
> > Im thinking installing to the distribution wide location and then worrying
> > later if gnome needs similar treatment.
> 
> But those defaults will affect other DEs, which is not desirable.
> 
> Moreover, kde-plasma/plasma-desktop depends upon
> kde-plasma/plasma-mimeapps-list, so why would you need to install them both?
> Or why do you need to maintain it as a separate package rather just patch
> the kde-plasma/plasma-desktop's one?

We want to be able to edit it easily without forcing rebuilds of plasma-desktop.
Comment 4 Larry the Git Cow gentoo-dev 2025-01-25 10:52:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=39abaaab4d28d0f326286b8d67978a8738461a4e

commit 39abaaab4d28d0f326286b8d67978a8738461a4e
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2025-01-25 04:33:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-25 10:52:26 +0000

    kde-plasma/plasma-mimeapps-list: replace plasma-desktop kde-mimeapps.list
    
    [sam: Note that pkgcheck complaints about insinto/newins here but it's bogus
    as we're *not* installing a menu item. Will file a bug about that later,
    though it may be awkward to handle.]
    
    Bug: https://bugs.gentoo.org/948681
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../plasma-mimeapps-list-2.ebuild                  | 26 --------------------
 .../plasma-mimeapps-list-3.ebuild                  | 28 ++++++++++++++++++++++
 2 files changed, 28 insertions(+), 26 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2025-01-25 10:52:53 UTC
The bug has been referenced in the following commit(s):

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

commit ef042cf60b50500d364675af5961808eb8941298
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2025-01-25 04:33:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-25 10:51:39 +0000

    kde-plasma/plasma-mimeapps-list: replace plasma-desktop kde-mimeapps.list
    
    [sam: Note that pkgcheck complaints about insinto/newins here but it's bogus
    as we're *not* installing a menu item. Will file a bug about that later,
    though it may be awkward to handle.]
    
    Bug: https://bugs.gentoo.org/948681
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 ...mimeapps-list-2.ebuild => plasma-mimeapps-list-3.ebuild} | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)