Andre Poenitz wrote:
> 
> On Thu, Oct 18, 2001 at 03:55:29PM +0200, Jean-Marc Lasgouttes wrote:
> > Do you have a lyx binary in /usr/bin/X11 (and /usr/bin/X11 in your
> > path?). If you do then blame your distributor (SuSE, if I am not
> > mistaken) :)
> 
> Where should the lyx bineary put by distributors in an ideal world?
> [And why?]

Normally the binary is installed in /usr/X11R6/bin...

The problem is not the real location. SuSE linux
initializes the PATH environment variable with
a clever mechanism: they look for the X11 directory
to use the "right" one. But they're using a strange
order for that:
/usr/bin/X11,/usr/X11R6/bin,/usr/X11/bin.

Unfortunately they added the symlink 
/usr/bin/X11 -> ../X11R6/bin
too... so X11 binaries now are found in /usr/bin/X11.

I have changed the order of the lookup after installing
my linux-laptop in /etc/csh.login.
(I'm root there, I can do it :)
Now the relevant part of /etc/csh.login reads as follows:

if ( -d /usr/X11R6/bin ) then
    set _xpath=( /usr/X11R6/bin $_xpath )
else if ( -d /usr/X11/bin ) then
    set _xpath=( /usr/X11/bin   $_xpath )
else if ( -d /usr/bin/X11 ) then
    set _xpath=( /usr/bin/X11   $_xpath )
endif

I don't like the SuSE default too.

Stephan

------------------------------------------------
<[EMAIL PROTECTED]> | beusen Solutions GmbH
fon: +49 30 549932-62    | Landsberger Allee 366
fax: +49 30 549932-21    | 12681 Berlin, Germany
------------------------------------------------

Reply via email to