On Feb 10, 2006, at 12:01 PM, Jean-Marc Lasgouttes wrote:
"Jean-Marc" == Jean-Marc Lasgouttes <Jean-
[EMAIL PROTECTED]> writes:
Jean-Marc> PS: I did not test bug2237-3.diff, I am currently compiling
It did not work very well, here is an updated version. I'd like to
apply that, if OSX and Windows people can comment on it.
On OSX, it installs in /Application/LyX-1.4.0cvs/ when version suffix
is -1.4.0cvs. Is that a good idea?
Well, I'm currently trying it, but it's forcing a complete recompile,
which won't be finished until after I head home for the weekend, so I
won't know for sure what it does until then. Anyway, I'll comment now.
I'm not sure what you mean in saying that it installs in /Application/
LyX-1.4.0cvs. When I reconfigure (with ./configure --with-frontend=qt
--without-x --disable-concept-checks --with-qt-dir=/Users/bennett/lyx/
gcc-3.3/qt-mac-free-3.3.5 --without-aiksaurus --without-aspell --
without-pspell --enable-optimization=-Os --disable-assertions --
disable-stdlib-debug --with-version-suffix), I get:
Configuration
...
Packaging: macosx
LyX binary dir: /Applications/LyX.app/Contents/MacOS
LyX files dir: /Applications/LyX.app/Contents/
Resources/LyX
That's not consistent with what you say, right?
One thing I've noticed *prior* to applying this patch, which it would
be nice to fix, is that within the development/MacOSX/LyX.app bundle,
there is Contents/Resources/LyX/preferences. When --with-version-
suffix is used, it creates a *new* directory, Contents/Resources/
LyX-1.4.0cvs/ and uses that for the default user's directory, thereby
bypassing the preferences file (which provides, most importantly,
correct PATH_prefix settings for OS X). It would be nice to have
preferences moved automatically to the correct directory within the
application bundle.
Concerning the executables, when LyX.app is opened, it searches for
LyX.app/Contents/MacOS/lyx. (No amount of monkeying around with the
Info.plist file -- including the CFBundleExecutable key that's
supposed to control this -- seems to have any consistent effect.)
Consequently, I create a soft link from lyx to lyx-1.4.0cvs, but
that's something I have to do manually. On OS X, application bundles
can have different names and are moveable. Consequently, I have
LyX.app as my stable version for everyday use, and LyX-13x.app and
LyX-14x.app for testing versions (which I determine using the --
prefix config flag). Moreover, I've compiled 1.4.0 using --with-
version-suffix so that it uses a different user directory (~/Library/
Application Support/LyX-1.4.0cvs) than 1.3.x (~/Library/Application
Support/LyX). Indeed, this last difference due to --with-version-
suffix is the only thing that matters on OS X.
So, for OS X it would be best IMO to do the following when dealing
with --with-version-suffix:
1. leave executable names alone (to avoid the need for soft links),
2. use the --with-version-suffix setting to determine the user's
directory, and
3. (eventually) make sure that the default preferences file gets
copied into the appropriate lyx-xxx directory inside the application
bundle on make install.
[By the way, my intent for the 1.4.x series releases is to compile
with --with-version-suffix=-1.4, so that people can have different
user directories for 1.3.x and 1.4.x if they like. (That's something
I like because I use customized .ui and .bind files, which differ
between the two versions.) I've updated the installer to automate
copying over files and changing preferences to point to the new
directory.]
Bennett