sofficerc and the other theme files should be put into etc for user to mess with. Same is that configuration should be overridable in ~/.config/libreoffice/ per user basis. This bug is somehow hacked in debian so they can put sofficerc into /etc/libreoffice/sofficerc and then the /usr/libdir/libreoffice/program/sofficerc contain some hack that loads the etc one. I would say that this would be highly desirable by most packagers. Also see downstream bug [1]. [1] https://bugs.gentoo.org/show_bug.cgi?id=406295 @petr: I don't know the complexity but could this be turned to some easy hack? If so would you mind helping me adding all the relevant info?
A generic pointer is to search for "sofficerc" at http://opengrok.libreoffice.org/ The following found locations look interesting: + "/* costruct the sofficerc file location */" comment in desktop/unx/source/splashx.c + "#define SVERSION_PROFILE" and "osl_openProfile" function definition in sal/osl/unx/profile.c + "// read keys from soffice.ini (sofficerc)" comment in uui/source/newerverwarn.cxx In each case, we could take inspiration in the hack that is used in Debian. I wonder if Rene could point us to the patch.
pmladek: sure. http://anonscm.debian.org/gitweb/?p=pkg-openoffice/libreoffice.git;a=blob;f=rules;h=980bf1d33374aef446078096bf3b1b4cdd4ea4f0;hb=HEAD#l2496 until line 2515
which then results in $ cat /usr/lib/libreoffice/program/sofficerc # *DO NOT* CHANGE THIS FILE. IT ONLY TAKES THE SETTINGS FROM # /etc/libreoffice/sofficerc. CHANGE THAT FILE IF YOU # REALLY WANT TO CHANGE SOMETHING. FHS_CONFIG_FILE=file:///etc/libreoffice/sofficerc [Bootstrap] HideEula=${$FHS_CONFIG_FILE:Bootstrap:HideEula} Logo=${$FHS_CONFIG_FILE:Bootstrap:Logo} NativeProgress=${$FHS_CONFIG_FILE:Bootstrap:NativeProgress} ProgressBarColor=${$FHS_CONFIG_FILE:Bootstrap:ProgressBarColor} ProgressFrameColor=${$FHS_CONFIG_FILE:Bootstrap:ProgressFrameColor} ProgressPosition=${$FHS_CONFIG_FILE:Bootstrap:ProgressPosition} ProgressSize=${$FHS_CONFIG_FILE:Bootstrap:ProgressSize} URE_BOOTSTRAP=${ORIGIN}/fundamentalrc (afaicr this was a hint from sberg in OOo times)
On pc Debian testing x86-64 with LO Debian package 4.4.5.2, it's the case now. root@julienPC:/# ls /etc/libreoffice/ psprint.conf sofficerc soffice.sh Tomáš: don't hesitate to reopen this tracker if I'm wrong. https://bugs.gentoo.org/show_bug.cgi?id=406295 is also indicated FIXED.
Debian does symlink. It is nothing comming from tdf package or buildsystem - > problem is still present.
strictly speaking, no, we don't symlink: (sid)rene@frodo:~$ ls -l /etc/libreoffice/sofficerc -rw-r--r-- 1 root root 206 Jun 4 05:50 /etc/libreoffice/sofficerc (sid)rene@frodo:~$ cat /usr/lib/libreoffice/program/sofficerc # *DO NOT* CHANGE THIS FILE. IT ONLY TAKES THE SETTINGS FROM # /etc/libreoffice/sofficerc. CHANGE THAT FILE IF YOU # REALLY WANT TO CHANGE SOMETHING. FHS_CONFIG_FILE=file:///etc/libreoffice/sofficerc [Bootstrap] HideEula=${$FHS_CONFIG_FILE:Bootstrap:HideEula} Logo=${$FHS_CONFIG_FILE:Bootstrap:Logo} NativeProgress=${$FHS_CONFIG_FILE:Bootstrap:NativeProgress} ProgressBarColor=${$FHS_CONFIG_FILE:Bootstrap:ProgressBarColor} ProgressFrameColor=${$FHS_CONFIG_FILE:Bootstrap:ProgressFrameColor} ProgressPosition=${$FHS_CONFIG_FILE:Bootstrap:ProgressPosition} ProgressSize=${$FHS_CONFIG_FILE:Bootstrap:ProgressSize} ProgressTextBaseline=${$FHS_CONFIG_FILE:Bootstrap:ProgressTextBaseline} ProgressTextColor=${$FHS_CONFIG_FILE:Bootstrap:ProgressTextColor} URE_BOOTSTRAP=${ORIGIN}/fundamentalrc (sid)rene@frodo:~$ cat /etc/libreoffice/sofficerc [Bootstrap] HideEula=1 Logo=1 NativeProgress=false ProgressBarColor=215,7,81 ProgressFrameColor=245,245,245 ProgressPosition=72,189 ProgressSize=409,8 ProgressTextBaseline=170 ProgressTextColor=255,255,255 But yes, it's a Debianism.
Bug does not meet the criteria for Status 'REOPENED' https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/REOPENED#Criteria Status -> NEW Any update on this, folks?
Ten years later and no news, I am afraid. I too would like this, especially if I could override it in ~/.config/libreoffice/ I edit sofficerc to turn off the splash screen, but that gets erased on update. If I could put my override in a user directory, I would never need to bother with it again.
I asked in the dev chat and our release engineer said: "LO packages are relocatable, so having something not in /opt in the main packages is problematic / would have to be done in the freedesktop-menus package / need to be made to work in a fallback fashion in case there is no in /etc - also TDF packages allow to have versions installed side-by-side, so cannot be a single file but needs to be versioned. You can can disable splash with --nologo and apart from that there's really not much in the sofficerc that users would touch, is there?" tomashnyk: what if you just aliased your LibreOffice command to include --nologo?