|
|
@ -329,8 +329,8 @@ static const char *xdgConfigFolder()
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
Hmm... for 'root' dont bother to check env var, just set to ~/.config
|
|
|
|
Hmm... for 'root' dont bother to check env var, just set to ~/.config
|
|
|
|
- as problems would arise if "sudo kcmshell style", and then
|
|
|
|
- as problems would arise if "sudo tdecmshell style", and then
|
|
|
|
"sudo su" / "kcmshell style". The 1st would write to ~/.config, but
|
|
|
|
"sudo su" / "tdecmshell style". The 1st would write to ~/.config, but
|
|
|
|
if root has a XDG_ set then that would be used on the second :-(
|
|
|
|
if root has a XDG_ set then that would be used on the second :-(
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
char *env=0==getuid() ? NULL : getenv("XDG_CONFIG_HOME");
|
|
|
|
char *env=0==getuid() ? NULL : getenv("XDG_CONFIG_HOME");
|
|
|
|