https://bugs.kde.org/show_bug.cgi?id=464228

            Bug ID: 464228
           Summary: feat: read system-wide default configs from /etc/kde/
    Classification: Frameworks and Libraries
           Product: frameworks-plasma
           Version: unspecified
          Platform: NixOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: libplasma
          Assignee: plasma-b...@kde.org
          Reporter: mil...@gmail.com
                CC: m...@ratijas.tk, notm...@gmail.com
  Target Milestone: ---

SUMMARY
allow to override kde default settings with global config files in /etc/kde/

ACTUAL
currently, the default settings of kde modules are hard-coded
and that default config can only be changed per user ($HOME/.config/)
but not system-wide = for all users (/etc/kde/)

example: baloo
default config: baloo-5.93.0/src/lib/baloosettings.kcfg
user config: $HOME/.config/baloofilerc

```xml
<!-- baloo-5.93.0/src/lib/baloosettings.kcfg -->

<kcfgfile name="baloofilerc" />

  <group name="Basic Settings">
    <entry name="indexingEnabled" key="Indexing-Enabled" type="Bool">
      <label>Indexing-Enabled</label>  
      <default>true</default>
    </entry>
  </group>

    <entry name="onlyBasicIndexing" key="only basic indexing" type="Bool">
      <label>only basic indexing</label>
      <default>false</default>
    </entry>
```

EXPECTED
let distributors and users have global config files in /etc/kde/
example: /etc/kde/baloofilerc

config resolution:

1. use the hard-coded settings for "baloofilerc"
2. if /etc/kde/baloofilerc exists, merge settings
3. if $HOME/.config/baloofilerc exists, merge settings

CONTEXT
related downstream issue:
option request: services.baloo.enable
https://github.com/NixOS/nixpkgs/issues/63489

SOFTWARE/OS VERSIONS
KDE Plasma Version: plasma-desktop-5.26.2
KDE Frameworks Version: 
Qt Version:

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to