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

Bug 926103

Summary: x11-misc/xdg-utils: Add kde6 support
Product: Gentoo Linux Reporter: Luigi 'Comio' Mantellini <luigi.mantellini+gentoo>
Component: Current packagesAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED INVALID    
Severity: normal CC: eschwartz93, ionen, kde, luigi.mantellini+gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://gitlab.freedesktop.org/xdg/xdg-utils/-/merge_requests/67
See Also: https://bugs.gentoo.org/show_bug.cgi?id=927949
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: xdg-open fix
xdg-settings fix

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