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

Per Olofsson pelle at debian.org
Mon May 29 18:42:09 UTC 2006


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

I don't understand completely either.

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

Why is that? Because a user might install programs on his own? What
does configure.py do?

> - 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

And how exactly is that different from the current /etc/lyxrc?

> 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)

Or better yet: modify the source so that we can pass a ./configure
option telling LyX to look in /etc/ instead.

> 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.

We don't need to pretend anything; it simply shouldn't be modified if
it is placed under /usr.

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

Then how will the system administrator set global system defaults?

I see the following options:

a) Rename lyxrc.dist to /etc/lyxrc.

b) Keep lyxrc.dist in /usr/share/lyx and reinstate /etc/lyxrc.

I'd prefer option b).

-- 
Pelle



More information about the Pkg-lyx-devel mailing list