[Pkg-lyx-devel] patch for scripts/update-lyrc

Sven Hoexter sven at timegate.de
Mon May 29 16:51:34 UTC 2006


On Mon, May 29, 2006 at 05:42:51PM +0200, Georg Baum wrote:
> Am Montag, 29. Mai 2006 17:01 schrieb Per Olofsson:
> > Sven Hoexter:
> > > I've made a bunch of changes related to this matter. Revision is 41:42.
> >
> > Is it true that there is no global lyxrc anymore?
> 
> No. It's name changed from lyxrc.defaults to lyxrc.dist.
> 
> > Why is that?
> 
> Because the global lyxrc is not automatically generated anymore by 
> configure.py. It is now a static file that packagers can populate with 
> special settings if needed.
>
> Debian should probably link /etc/lyxrc to /usr/share/lyx/lyxrc.dist. I am 
> not sure what to do with the existing example lyxrc that is currently 
> in /etc. AFAIK it was not used in the past.
That doesn't sound good and I guess that it collides with the FHS and it
will hurt people mounting /usr read-only. The other way around might be an
option.

Ok let me summarize this for the slower people (like myself :-/) to
be sure that I got it this time.

- lyxrc.defaults no longer exists as a global file, it still exists in
$HOME/.lyx and can be/is generated with configure.py

- lyxrc.dist *can* be created as a global file if you want to ship a
package with some special settings. It will be read before
$HOME/.lyx/lyxrc.defaults

- Lyx src/ChangeLog has this entry:
  2006-04-28  Jean-Marc Lasgouttes  <lasgouttes at lyx.org>

        (init): read lyxrc.dist before lyxrc.defaults; remove code to read
        lyxrc (LyX 1.1.5 compatibility code).

If I got this right lyx no longer reads /etc/lyxrc by default so I see a few
options how to deal with it.

a) It might make sense to install a file /etc/lyxrc(.dist) with just a
   comment in and create a link pointing from /usr/share/lyx/lyxrc.dist
   to /etc/lyxrc(.dist)

b) Create /usr/share/lyx/lyxrc.dist with a comment that it's empty
   or put something in if we need it and pretend that this file should not
   be modified.

c) Create neither /etc/lyxrc nor /usr/share/lyx/lyxrc.dist


Ok now what did I miss this time?

Cheers,
Sven
-- 
If you won't forgive me the rest of my life
Let me apologize while I'm still alive
I know it's time to face all of my past mistakes
  [Less than Jake - Rest Of My Life]



More information about the Pkg-lyx-devel mailing list