This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Global "kdeglobals" config file location in Plasma 5

Tags: None
(comma "," separated)
Tommy Vercetti
Registered Member
Posts
27
Karma
0
OS
I'd like to provide some custom default settings for new users (window buttons order, default view and double-click-to-open in file manager etc). That is possible by modyfying /etc/kde4/share/config/kdeglobals file in KDE 4, but I cannot find any global analogue for the 5th version of the environment. Is there any or is using /etc/skel the onliest way now?
(openSUSE Leap 42.1, Plasma 5.4.3)
luebking
Karma
0
check
Code: Select all
kf5-config --path config

it's usually /etc/xdg
Tommy Vercetti
Registered Member
Posts
27
Karma
0
OS
Thanks a lot, luebking, you were right.
Also config files in /etc/xdg now seem to have exactly the same name they would have being in ~/.config (kwinrc and breezerc instead of kdeglobals in my case).
luebking
Karma
0
> Also config files in /etc/xdg now seem to have exactly the same name

=)

They always had. KConfig (conditionally, but by default) loads cascaded and including globals.
The cascade loads the system wide installed config as backup and the global include includes kdeglobals (everywhere), iow. you *could* (to a certain degree, sometimes the fallback system is omitted) put *all* config into /etc/xdg/kdeglobals - *could*, but better don't ;-)
Tommy Vercetti
Registered Member
Posts
27
Karma
0
OS
Then where is the right place to store such file manager settings like default view mode or "open with single\double click" ? Or application default hotkeys? Not in kdeglobals?
luebking
Karma
0
Single/Double click is *not* a filemanager setting. IIrc it was also exposed resp. maybe even shadowed by some dolphin setting, but it's actually a global behavior thing.

About the position: there's nothing such as a correct location - it depends on your pre-config design on which layer to put things.
Settings which are actually exclusive to kdeglobals must go there, for others the rule of thumb is to create a user config rc (eg. dolphin), strip all irrelevant settings, maybe set some immutable and put it into /etc/xdg. This will cover cases where the global fallback settings are not considered by the config loader.

tl;dr - do whatever it takes to get your task done. Is fine ;-)


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]