https://issues.apache.org/ooo/show_bug.cgi?id=121914
Ariel Constenla-Haile <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #4 from Ariel Constenla-Haile <[email protected]> --- (In reply to comment #3) > It seems that $SYSUSERCONFIG points to $HOME or to $HOME/.config with > openjdk7 and openjdk6 respectively. Technically speaking, $SYSUSERHOME is $HOME; $SYSUSERCONFIG first looks at the environment variable $XDG_CONFIG_HOME; if not set, it resolves to $HOME Code pointer for the interested reader: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sal/rtl/source/bootstrap.cxx?revision=1198277&view=markup#l510 http://svn.apache.org/viewvc/openoffice/trunk/main/sal/inc/osl/security.hxx?revision=1413471&view=markup#l87 http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sal/osl/unx/security.c?revision=1303378&view=markup#l774 Note that in any case, Java is never involved. > In pure semantics, we would expect $SYSUSERCONFIG to mean $HOME/.config . This looks like a bug, indeed: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sal/osl/unx/security.c?revision=1303378&view=markup#l795 795 static sal_Bool SAL_CALL osl_psz_getConfigDir(oslSecurity Security, sal_Char* pszDirectory, sal_uInt32 nMax) 796 { 797 sal_Char *pStr = getenv("XDG_CONFIG_HOME"); 798 799 if ((pStr == NULL) || (strlen(pStr) == 0) || 800 (access(pStr, 0) != 0)) 801 return (osl_psz_getHomeDir(Security, pszDirectory, nMax)); 802 803 strncpy(pszDirectory, pStr, nMax); 804 return sal_True; 805 } the code is getting the value from XDG_CONFIG_HOME; if it is unset or empty, then it resolves to $HOME. But the freedesktop specification says: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html "$XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used." It should resolve to $HOME/.config > Please close if necessary. Closing. @Andrea: for the $HOME/.config bug, open a new one (and/or start a discussion on the development list). -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.
