6

GNOME and many window managers such as the Awesome WM use the GSettings settings database, with Dconf as the backend. What is the equivalent of this for KDE?

Also, we can edit GSettiings with the Dconf Editor application or the gsettings command line tool. For example:

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'

Has somebody work with KDE's engine? What's its name? What tools are there to modify it (such as dconf-editor and gsettings)?

Finally, we can hack the GSettings engine with gsettings get; how can I do this in KDE?

8
  • afaik there is no equivalent software. In KDE you have to use systemsetting or manually edit the config files in ~/.kde/share/config. As an example, to edit the order of the titlebar buttons you would have to edit ~/.kde/share/config/kwinrc, section [style] or find the relevant section in System Settings.
    – d-cmst
    Nov 14, 2013 at 11:59
  • Oh no, i don't set titlebar, i want to know name of KDE engine. Nov 14, 2013 at 12:48
  • 1
    @Gilles KDE hasn't used dcop since the KDE 3.x days. Since KDE 4.0 it uses dbus, same as gnome. Mar 9, 2015 at 23:57
  • 1
    We can use sed to get the system default values changed, but one other nice feature of dconf / gsettings is that you can have 'override' files. Meaning you don't touch the actual system level default files (that will be overwritten when they upgrade) but rather you can put files in /usr/share/glib-2.0/schemas with an extension of "gschema.override". If there are multiple override files that set settings differently, "last one wins".
    – rik-shaw
    Mar 26, 2017 at 4:50
  • 1
    <continued from above comment> Anyway, this allows us to have many different user locations with different default settings for their location, while at the same time it doesn't fight with the upstream gnome default settings. So I am wondering if there is any way to work with adjusting the system default settings on kde without interfering with the exact files that will be overwritten as kde updates? I will possibly start a new question but thought it most relevant to start here.
    – rik-shaw
    Mar 26, 2017 at 4:51

2 Answers 2

5

KDE doesn't use dconf. In KDE, settings are stored in simple text files rather than a database. The GUI for changing these settings is systemsettings, although individual application settings are usually set within the application.

2
  • According to Dawit Alemayehu, there'd be an api for it. And there'd be no guarantees that the conf file format'd be compatible. Apps reading the conf files directly without using the api'd be broken. bugs.kde.org/show_bug.cgi?id=288002#c3 Jan 12, 2020 at 4:14
  • @把友情留在无盐 There are APIs for accessing particular data, as there are with most operating systems and DEs, but there is no central database of configuration information like with dconf. Jan 13, 2020 at 18:25
4

I found the corresponding settings saved in .kde/share/config/kioslaverc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.