Phi schrieb[...]weil ich Geany nach der Installation sofort mit root gestartet wurde.
In diesem Fall hätte sich das minus hinter su (d.h. 'su -') gelohnt.
Hmm, was ist Geany, warum startet ihr das unter root? Aha, ein Texteditor, der XDG_CONFIG_HOME berücksichtigt:
$ man su
-, -l, --login
Start the shell as a login shell with an environment similar to a real login:
o clears all the environment variables except TERM
o initializes the environment variables HOME, SHELL, USER, LOGNAME, and PATH
o changes to the target user's home directory
o sets argv[0] of the shell to '-' in order to make the shell a login shell