KDEROOTHOME set incorrectly; user settings ignored
Bug #44920 reported by
Mark Lord
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdebase (Ubuntu) |
Fix Released
|
Medium
|
Kubuntu Bugs |
Bug Description
Binary package hint: ksmserver
The KDEROOTHOME environment variable is incorrectly set to "/root" when logging in as superuser. It should be "/root/.kde" instead. This results in the "System Settings" changes being ignored, and the KDE Control Center stores changes in the wrong directories. A bit of a mess, really.
To fix it, /usr/bin/startkde should be setting a default KDEROOTHOME variable for the root user. This can be done in /usr/bin/startkde, by adding one line just after where "kdehome" is set:
kdehome=$HOME/.kde
test -n "$KDEHOME" && kdehome=`echo "$KDEHOME"|sed "s,^~/,$HOME/,"`
+[ -z "$KDEROOTHOME" -a "$UID" == "0" ] && export KDEROOTHOME=
To post a comment you must log in.
This fixes the problem, without creating any new problems.