https://bugs.kde.org/show_bug.cgi?id=374272
--- Comment #10 from Harald Sitter <[email protected]> --- (In reply to Andrius Štikonas from comment #9) > For version 3.1 I think I'll also pass $HOME environmental variable to keep > user home dir and theming. You really must not. If you set $HOME you will have configuration files in the user's home owned by root, re-owned to root, have incorrect (rooty) paths written to, and similar nonesense happening. This is also one of the reasons why sudo, for example, takes great care to mangle the environment such that the "default" variables are pointing to root rather than the sudoing user. Setting HOME to the user's home while elevating to root is a big no-no. For theming purposes what you could try to do is make plasmaintegration (the themeplugin) read from SUDO_USER's home and in your helper export SUDO_USER. This needs checking back with the plasma developers, but generally speaking if you go through SUDO_USER and make double sure that the themeplugin is only able to read but not write configs this ultimately should give better themeing. NB: this still would not be perfect as the elevated application still wouldn't be able to load additional themes or plugins or icons from user specified XDG_* environment paths (also, doing so would, in fact. be an enormous security hazard). -- You are receiving this mail because: You are watching all bug changes.
