LinuxCommandLibrary

kreadconfig5

reads values from KDE Plasma 5 configuration files

TLDR

Read a key from global configuration

$ kreadconfig5 --group [group_name] --key [key_name]
copy
Read a key from specific file
$ kreadconfig5 --file [path/to/file] --group [group_name] --key [key_name]
copy
Check systemd boot setting
$ kreadconfig5 --file startkderc --group General --key systemdBoot
copy

SYNOPSIS

kreadconfig5 [options]

DESCRIPTION

kreadconfig5 reads values from KDE Plasma 5 configuration files. KConfig is KDE's configuration system, storing settings in INI-style files with groups and key-value pairs.
Configuration files are typically stored in ~/.config/ with names like kdeglobals, kwinrc, plasmarc, etc. The tool is useful for scripting and automation involving KDE settings.

PARAMETERS

--file FILE

Configuration file to read from
--group GROUP
Configuration group (section)
--key KEY
Key name to read
--default VALUE
Default value if key doesn't exist

CAVEATS

KDE 5 specific; KDE 6 uses kreadconfig6. File paths can be relative to ~/.config or absolute. Groups and keys are case-sensitive.

HISTORY

kreadconfig5 is part of the KDE Frameworks, providing command-line access to KDE's configuration system. It complements kwriteconfig5 for reading settings in scripts.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community