On Dec 27, 2007 12:55 PM, Mattias Gaertner <[EMAIL PROTECTED]> wrote: > On Thu, 27 Dec 2007 11:27:03 +0100 > > Vincent Snijders <[EMAIL PROTECTED]> wrote: > > > Mattias Gaertner schreef: > > > On Sat, 22 Dec 2007 13:23:11 +0100 > > > Vincent Snijders <[EMAIL PROTECTED]> wrote: > > > > > >> ik schreef: > > >>> On Dec 21, 2007 12:27 AM, Vincent Snijders <[EMAIL PROTECTED]> > > >>> wrote: > > >>>> ik schreef: > > >>>>> Hello, > > >>>>> > > >>>>> My "stable" version of lazarus is 0.9.24, however I do check > > >>>>> Lazarus svn from time to time, and usually I change the .lazarus > > >>>>> directory depends on the version I wish to check. > > >>>>> Is there a way to tell Lazarus to store information regarding he > > >>>>> specific version I'm using instead of working like that ? > > >>>>> > > >>>> You can tell lazarus what configuration directory to use. The > > >>>> default is ~/.lazarus (on *nix), but you can change this by using > > >>>> the --pcp parameter: ./lazarus --pcp= > > >>>> > > >>>> See also ./lazarus --help > > >>> Thanks, that worked. It seems though that if Lazarus restart > > >>> itself (like after recompiling Lazarus from inside the menu > > >>> options), it will not pass the command line parameters. > > >> Good point. It probably should. > > > > > > I added this in 13473. > > > > > > > It did not work on windows. I fixed things in r13479, so that Lazarus > > can be started again, but maybe I 'fixed' too much. > > > > I think startlazarus (i.e. the lazarus manager) should not add " > > around its parameters. The single quotes in --primary-config-path=bla > > passed to startlazarus when restarting were in the wrong place. > > Further if you pass --primary-config-path='c:\lazarus', Lazarus wants > > to create a test file "'c:\lazarus'\compilertest.pas" (double quotes > > are mine). Note that the ' are not removed from the path. > > You are right. > It seems under windows TProcess does not handle " and ', but simply > passes the entire commandline to CreateProcess, so it is up to program > to handle " and ' correct. According to msdn this is normal under > windows.
The problem of Windows API is that for path you must use ", otherwise it will search in wrong manner. For example: C:\Program Files\Commons Windows will look for: C:\Program.exe And if not found, then it will continue on words... > > IMO " and ' should be handled by the IDE/startlazarus/lazbuild on > windows. This is not needed under unix platforms, although it will not > hurt. > > > Mattias > > Ido -- http://ik.homelinux.org/ _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives