Re: [LyX/Mac] Setting PATH in property file.

2005-01-10 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> What about the case when LyX is being run from the build Angus> directory? In such a case, adding the directory containing the Angus> LyX binary to the PATH is pointless. How about: [snip] Yes, this seems very good. Angus> It'll b

Re: [LyX/Mac] Setting PATH in property file.

2005-01-10 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Angus> Both Lars and you seem to be arguing that we shouldn't have a > Angus> LyXRC::path_prefix variable. I fail to see why this suggestion > Angus> is generating so much discussion. It's simple and it'll work. > > No, I am arguing that, besides this path_prefix vari

Re: [LyX/Mac] Setting PATH in property file.

2005-01-10 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Both Lars and you seem to be arguing that we shouldn't have a Angus> LyXRC::path_prefix variable. I fail to see why this suggestion Angus> is generating so much discussion. It's simple and it'll work. No, I am arguing that, besides

Re: [LyX/Mac] Setting PATH in property file.

2005-01-10 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Angus> To recap, on Windows we attempt to execute the lib/configure > Angus> script as system("start /min  sh  /configure"); > Angus> which fails because J:\MinSys\bin isn't in the cmd.exe's path. > > And is it supposed to be in there with a proper installation? I see

Re: [LyX/Mac] Setting PATH in property file.

2005-01-10 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> To recap, on Windows we attempt to execute the lib/configure Angus> script as system("start /min sh /configure"); Angus> which fails because J:\MinSys\bin isn't in the cmd.exe's path. And is it supposed to be in there with a proper

Re: [LyX/Mac] Setting PATH in property file.

2005-01-10 Thread Angus Leeming
Jose' Matos wrote: >> Incidentally, José, I understand that Windows users are having >> difficulty launching lyx2lyx because it doesn't have a ".py" extension >> and because Windows doesn't search the first line of the script for >> "#! /bin/env python" > > What do you suggest? Invoke lyx2lyx a

Re: [LyX/Mac] Setting PATH in property file.

2005-01-10 Thread Jose' Matos
On Friday 07 January 2005 20:15, Angus Leeming wrote: > > Ok, that's reasonable too. Do we need PYTHON_PATH as well, for lyx2lyx? > > Incidentally, José, I understand that Windows users are having difficulty > launching lyx2lyx because it doesn't have a ".py" extension and because > Windows doesn't

Re: [LyX/Mac] Setting PATH in property file.

2005-01-07 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > | To recap, on Windows we attempt to execute the lib/configure script as > | system("start /min sh /configure"); > > coudn't we just call > > system("start /min J:\MinSys\bin/sh lyxdir>/configure"); > > ?? > > Where "J:\MinSys\bin\sh

Re: [LyX/Mac] Setting PATH in property file.

2005-01-07 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: There is also the option of not altering the PATH at all and just call teh binary with a full path. >>> >> | Sure, but that won't help me find sh.exe if LyX is installed at >> | C:\Program Files\LyX\bin and sh.exe is

Re: [LyX/Mac] Setting PATH in property file.

2005-01-07 Thread Angus Leeming
Lars Gullik Bjønnes wrote: >>> There is also the option of not altering the PATH at all and just call >>> teh binary with a full path. >> > | Sure, but that won't help me find sh.exe if LyX is installed at > | C:\Program Files\LyX\bin and sh.exe is in J:\MinSys\bin >> > | I do think that a LyXRC va

Re: [LyX/Mac] Setting PATH in property file.

2005-01-07 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: Rather than hard-code these weird and wonderful additions to PATH, why don't we define a new LyXRC variable "path_prefix" which will be prepended to the existing PATH variable when LyX is initialised. >>> >> | Wh

Re: [LyX/Mac] Setting PATH in property file.

2005-01-07 Thread Angus Leeming
Lars Gullik Bjønnes wrote: >>> Rather than hard-code these weird and wonderful additions to PATH, why >>> don't we define a new LyXRC variable "path_prefix" which will be >>> prepended to the existing PATH variable when LyX is initialised. >> > | Why not require that people set PATH correctly? I fa

Re: [LyX/Mac] Setting PATH in property file.

2005-01-07 Thread Lars Gullik Bjønnes
Georg Baum <[EMAIL PROTECTED]> writes: | Angus Leeming wrote: > >> Rather than hard-code these weird and wonderful additions to PATH, why >> don't we define a new LyXRC variable "path_prefix" which will be prepended >> to the existing PATH variable when LyX is initialised. > | Why not require that

Re: [LyX/Mac] Setting PATH in property file.

2005-01-07 Thread Georg Baum
Angus Leeming wrote: > At the moment, Mac users have their PATH modified so: > > string oldpath = GetEnv("PATH"); > string newpath = "PATH=" + oldpath + ":" + binpath + ":"; > newpath += > "/sw/bin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin-current"; > PutEnv(newpath); > lyxerr

Re: [LyX/Mac] Setting PATH in property file.

2005-01-07 Thread Angus Leeming
Georg Baum wrote: >> Rather than hard-code these weird and wonderful additions to PATH, why >> don't we define a new LyXRC variable "path_prefix" which will be >> prepended to the existing PATH variable when LyX is initialised. > > Why not require that people set PATH correctly? I fail to see why

Re: [LyX/Mac] Setting PATH in property file.

2005-01-07 Thread Bennett Helm
On Jan 7, 2005, at 10:39 AM, Jean-Marc Lasgouttes wrote: "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> On Dec 10, 2004, at 9:49 AM, Jean-Marc Lasgouttes wrote: However, a possibility would be to remove all this special code for LyX/Mac in the startup code, and replace it with setti

Re: [LyX/Mac] Setting PATH in property file.

2005-01-07 Thread Georg Baum
Angus Leeming wrote: > Rather than hard-code these weird and wonderful additions to PATH, why > don't we define a new LyXRC variable "path_prefix" which will be prepended > to the existing PATH variable when LyX is initialised. Why not require that people set PATH correctly? I fail to see why set

Re: [LyX/Mac] Setting PATH in property file.

2005-01-07 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Bennett, I never answered to this message because Angus was busy > butchering the init process at the same time... Nevertheless, the > scripts are sound. I propose we return to that when Angus' work has > landed. > > Angus, do you think that we should unconditionally

Re: [LyX/Mac] Setting PATH in property file.

2005-01-07 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> On Dec 10, 2004, at 9:49 AM, Jean-Marc Lasgouttes wrote: >> However, a possibility would be to remove all this special code for >> LyX/Mac in the startup code, and replace it with setting user- and >> lyx-dir from the script. Be

Re: [LyX/Mac] Setting PATH in property file.

2004-12-13 Thread Bennett Helm
On Dec 10, 2004, at 9:49 AM, Jean-Marc Lasgouttes wrote: However, a possibility would be to remove all this special code for LyX/Mac in the startup code, and replace it with setting user- and lyx-dir from the script. I've done this -- or at least tried to. (I'm not sure if I've cleaned up lyx_main

Re: [LyX/Mac] Setting PATH in property file.

2004-12-10 Thread Bennett Helm
On Dec 8, 2004, at 12:20 PM, Jean-Marc Lasgouttes wrote: In 1.3.x, it is in LyX::init, where you find around line 398 of lyx_main.C string oldpath = GetEnv("PATH"); string newpath = "PATH=" + oldpath + ":" + binpath + ":"; newpath += "/sw/bin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-appl

Compiling 1.3.x with gcc 3.3 on Mac (was: [LyX/Mac] Setting PATH in property file.)

2004-12-10 Thread Bennett Helm
On Dec 9, 2004, at 8:51 AM, Jean-Marc Lasgouttes wrote: I suspect that gcc 3.x should now compile lyx 1.3.x. I have removed all reference to pragma interface/implementation which were a problem with gcc/cygwin, so you may want to give it a try. I've tried it, and it doesn't work, giving what I vagu

Re: [LyX/Mac] Setting PATH in property file.

2004-12-09 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> Well, it's not simply an issue with Qt. I use Qt 3.3.3 for Bennett> both LyX 1.4.0 and 1.3.x (though compiled with gcc-3.3 and Bennett> 2.98, respectively since gcc-3.x doesn't compile LyX 1.3.x on Bennett> the Mac). And using th

Re: [LyX/Mac] Setting PATH in property file.

2004-12-09 Thread Bennett Helm
On Dec 8, 2004, at 4:02 PM, Andreas Vox wrote: Jean-Marc writes: > "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> On the other hand, although LyX 1.4.0 can be started from the Bennett> command line, it remains in the background and refuses to Bennett> take focus; hence straightf

Re: [LyX/Mac] Setting PATH in property file.

2004-12-08 Thread Andreas Vox
Jean-Marc writes: > "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> On the other hand, although LyX 1.4.0 can be started from the Bennett> command line, it remains in the background and refuses to Bennett> take focus; hence straightforward debugging is pretty much Bennett> imposs

Re: [LyX/Mac] Setting PATH in property file.

2004-12-08 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> On the other hand, although LyX 1.4.0 can be started from the Bennett> command line, it remains in the background and refuses to Bennett> take focus; hence straightforward debugging is pretty much Bennett> impossible as it is. (C

Re: [LyX/Mac] Setting PATH in property file.

2004-12-06 Thread Bennett Helm
On Nov 16, 2004, at 1:21 PM, Ronald Florence wrote: Jean-Marc Lasgouttes wrote: It seems that it is possible to set environment variables (like PATH maybe) of an application in its info.plist, using the LSElement key, as described here: http://developer.apple.com/documentation/MacOSX/Conceptual/ B

Re: [LyX/Mac] Setting PATH in property file.

2004-11-22 Thread Jean-Marc Lasgouttes
> "Ronald" == Ronald Florence <[EMAIL PROTECTED]> writes: Ronald> This is a very good idea, with only one "gotcha" that I could Ronald> see: Ronald> "These environment variables are set only for applications Ronald> launched through Launch Services. If you run your executable Ronald> directly

Re: [LyX/Mac] Setting PATH in property file.

2004-11-16 Thread Ronald Florence
Jean-Marc Lasgouttes wrote: It seems that it is possible to set environment variables (like PATH maybe) of an application in its info.plist, using the LSElement key, as described here: http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Concepts/EnvironmentVars.html http://de

[LyX/Mac] Setting PATH in property file.

2004-11-16 Thread Jean-Marc Lasgouttes
Bennett, It seems that it is possible to set environment variables (like PATH maybe) of an application in its info.plist, using the LSElement key, as described here: http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Concepts/EnvironmentVars.html http://developer.apple.com