Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926103 - x11-misc/xdg-utils: Add kde6 support
Summary: x11-misc/xdg-utils: Add kde6 support
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL: https://gitlab.freedesktop.org/xdg/xd...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-03 16:52 UTC by Luigi 'Comio' Mantellini
Modified: 2024-03-27 11:41 UTC (History)
4 users (show)

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


Attachments
xdg-open fix (xdg-open.patch,292 bytes, patch)
2024-03-03 16:58 UTC, Luigi 'Comio' Mantellini
Details | Diff
xdg-settings fix (xdg-settings.patch,1.14 KB, patch)
2024-03-03 16:58 UTC, Luigi 'Comio' Mantellini
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luigi 'Comio' Mantellini 2024-03-03 16:52:30 UTC
The actual xdg-utils suite fails actions on kde6.

The following fix should be in place:
- xdg-open: On ${KDE_SESSION_VERSION} == 6 kde-open should be called.
- xdg-settings get: kreadconfig6 should used to read config. 
- xdg-settings set: kwriteconfig6 should used to read config. 


Reproducible: Always

Steps to Reproduce:
1. Install plasma6/kde6
2. xdg-open http://www.gentoo.org
3. xdg-settings get default-web-browser 

Actual Results:  
2. Will not open anything
3. Will fail searching for kreadconfig 

Expected Results:  
2. Web browser should be opened with the www.gentoo.org homepage
3. Should give the actual default browser
Comment 1 Luigi 'Comio' Mantellini 2024-03-03 16:58:13 UTC
Created attachment 886615 [details, diff]
xdg-open fix
Comment 2 Luigi 'Comio' Mantellini 2024-03-03 16:58:38 UTC
Created attachment 886616 [details, diff]
xdg-settings fix
Comment 3 Ionen Wolkens gentoo-dev 2024-03-03 17:00:41 UTC
Haven't tried plasma6 myself, but it's supposed to already have support for 6 from $URL. And these changes are present in ~testing xdg-utils-1.2.1 that I can see.

Are you using stable xdg-utils-1.1.3_p20210805-r2?
Comment 4 Eli Schwartz 2024-03-03 19:46:46 UTC
This is also something inherently upstream, it's really not Gentoo's job to add new features to xdg-utils. It's the job of upstream to do so, and Gentoo to package it.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-03 21:43:04 UTC
Please don't test the new KDE releases on stable yet. I don't want it to leave a bad impression because of things to fix on our side.

The experience in ~arch when unmasking should be OK though.

Also, supposing these errors do exist upstream still, please submit these patches as MRs there, but I don't think they do.
Comment 6 Luigi 'Comio' Mantellini 2024-03-04 09:35:24 UTC
Stupid me. My mistake.
I have not noticed the 1.2.1 ebuild and I just modified myself to have a working setup... without any check on xdg-utils package.
Sorry for this noise.

ciao

luigi