Bug 376406 - start_kdeinit deletes all Xresources at startup
Summary: start_kdeinit deletes all Xresources at startup
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kinit
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.29.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-12 17:43 UTC by hamelg
Modified: 2023-07-03 21:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hamelg 2017-02-12 17:43:30 UTC
at session startup, /usr/bin/startkde resets all Xresources. All current Xresources are deleted when /usr/lib/kf5/start_kdeinit_wrapper is running in the startkde script.

Step to reproduce :
1. Install & configure sddm
2. echo "my.xresource: 1" > /etc/X11/Xresources/myxresource
3. Launch a kde session
4. my.xresource doesn't exist : xrdb -q | grep my.xresource

In previous version, existing Xresources were merged, not deleted.
Now, x settings loaded before running startkde are lost and ignored in kde session.
Comment 1 hamelg 2017-02-12 17:47:54 UTC
Additional information :
my Kinit Version : 5.30.0
Comment 2 Bug Janitor Service 2021-10-15 12:14:33 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1119
Comment 3 Alexander Volkov 2021-10-18 10:28:11 UTC
Git commit d4dd7478893e9ac72b0c89772a086b213bb33292 by Alexander Volkov.
Committed on 18/10/2021 at 10:21.
Pushed by volkov into branch 'master'.

krdb: Fix removal of Xft.dpi from Xresources

'xrdb -remove' can't remove a specific entry, it removes all entries only.
So query all entries, remove "Xft.dpi" from them, and replace Xresources
with the result.
Related: bug 350039

M  +28   -7    kcms/krdb/krdb.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/d4dd7478893e9ac72b0c89772a086b213bb33292
Comment 4 Alexander Volkov 2021-10-18 10:36:14 UTC
Git commit 85399471b2aad37e4524bde20b70fe2cb61354ba by Alexander Volkov.
Committed on 18/10/2021 at 10:34.
Pushed by volkov into branch 'Plasma/5.23'.

krdb: Fix removal of Xft.dpi from Xresources

'xrdb -remove' can't remove a specific entry, it removes all entries only.
So query all entries, remove "Xft.dpi" from them, and replace Xresources
with the result.
Related: bug 350039

(cherry picked from commit d4dd7478893e9ac72b0c89772a086b213bb33292)

M  +28   -7    kcms/krdb/krdb.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/85399471b2aad37e4524bde20b70fe2cb61354ba
Comment 5 Christoph Cullmann 2023-07-03 21:08:32 UTC
Did the mentioned merge help? If not, please report this to plasma desktop.
Comment 6 hamelg 2023-07-03 21:36:44 UTC
Yes, it fixes the issue.
thanks !
Comment 7 Christoph Cullmann 2023-07-03 21:43:37 UTC
Thanks for the quick feedback!