KDE environment variables

This is a wiki page. Be bold and improve it!

If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.

Environment variables affecting the operation of KDE.

KDE 4

$KDEHOME: .kde, .kde4,
$KDEDIR.

KDE Plasma 5

https://userbase.kde.org/Session_Environment_Variables

/usr/bin/startkde contains:

# We need to create config folder so we can write startupconfigkeys
if [  ${XDG_CONFIG_HOME} ]; then
  configDir=$XDG_CONFIG_HOME;
else
  configDir=${HOME}/.config; #this is the default, standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
fi

XDG Base Directory Specification
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest....