Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 406295

Summary: app-office/libreoffice - sofficerc is not protected
Product: Gentoo Linux Reporter: Andrew Udvare <audvare>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED FIXED    
Severity: normal CC: ppw0, write2David
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.freedesktop.org/show_bug.cgi?id=47470
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 407649    
Attachments: sofficerc

Description Andrew Udvare 2012-02-29 13:24:14 UTC
Created attachment 303729 [details]
sofficerc

Both OpenOffice and Libreoffice have a file named sofficerc. LibreOffice's file is at:

/usr/lib64/libreoffice/program/sofficerc

It has a line:
Logo=1

by default. This file is always overwritten upon reinstalling.

I'd really like a USE flag that turns this to Logo=0 because I really dislike splash screens of any kind.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-29 15:41:06 UTC
You could put that file in CONFIG_PROTECT, but it's odd that the rc file isn't installed in /etc... would that even work?
Comment 2 Andrew Udvare 2012-02-29 15:45:18 UTC
(In reply to comment #1)
> You could put that file in CONFIG_PROTECT, but it's odd that the rc file
> isn't installed in /etc... would that even work?

I was trying to find that out before making this report and nobody seems to know.

I recall that OpenOffice on Windows was very similar in that this same file (maybe it was sofficerc.ini then on Windows) was not in the user's directory.

I've sort of just been hoping the feature would eventually be added (a USE flag or something similar or that the team would come to their senses and allow this file to exist in ~ and /etc).
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2012-03-06 21:38:32 UTC
Hmm I wonder how one can config protect something in /usr/. Env variable?
Comment 4 Jared B. 2012-03-18 05:57:42 UTC
Tatsh,

This doesn't address the particular problem you reported, but there are a couple workarounds so that you don't need to edit the sofficerc file:

1. Use quickstarter - libreoffice starts so fast there's no need for a splash screen.  :-)

2. Launch it with -nologo.  This clearly isn't ideal as you'd need to edit all of your shortcuts, but you should only need to do it once (per system).

As for the particular issue described here, some other distributions (such as ubuntu) actually put this file in /etc/libreoffice.  Perhaps we could do the same?  Then you don't need to worry about any special/non-standard protection for this file.
Comment 5 Andrew Udvare 2012-03-18 06:09:06 UTC
(In reply to comment #4)
> Tatsh,
> 
> This doesn't address the particular problem you reported, but there are a
> couple workarounds so that you don't need to edit the sofficerc file:
> 
> 1. Use quickstarter - libreoffice starts so fast there's no need for a
> splash screen.  :-)
> 
> 2. Launch it with -nologo.  This clearly isn't ideal as you'd need to edit
> all of your shortcuts, but you should only need to do it once (per system).
> 
> As for the particular issue described here, some other distributions (such
> as ubuntu) actually put this file in /etc/libreoffice.  Perhaps we could do
> the same?  Then you don't need to worry about any special/non-standard
> protection for this file.

Right now I just have the file in CONFIG_PROTECT (hope the path does not change).

CONFIG_PROTECT="/usr/lib64/libreoffice/program/sofficerc"
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2013-12-27 18:18:53 UTC
The file is protected. 

:) (starting 4.1.4.2)
Comment 7 ppw0 2024-05-10 09:48:36 UTC
This one has resurfaced for me. My sofficerc gets clobbered. Anything that can be done about this?