Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-07

Lazarus settings on WinXP

9 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marcos Douglas

Hi,
On WinXP, the Lazarus saves settings in:
C:\Documents and Settings\<user>\Local Settings\Application Data\lazarus\*.*

Can I use another directory?
I want to use Lazarus in external HD to take to work on multiple CPU.

Thanks,
MD.

Reply by email

Marcos Douglas
to Marcos Douglas
Marcos Douglas wrote 6 lines
Hi, On WinXP, the Lazarus saves settings in: C:\Documents and Settings\<user>\Local Settings\Application Data\lazarus\*.* Can I use another directory? I want to use Lazarus in external HD to take to work on multiple CPU.

I found: --primary-config-path=C:\example

Why not exists in Environment/Options IDE?

Reply by email

Vincent Snijders
to Marcos Douglas

2010/7/12, Marcos Douglas :

Show quoted text 11 lines
On Mon, Jul 12, 2010 at 5:19 PM, Marcos Douglas wrote: > Hi, > On WinXP, the Lazarus saves settings in: > C:\Documents and Settings\<user>\Local Settings\Application Data\lazarus\*.* > > Can I use another directory? > I want to use Lazarus in external HD to take to work on multiple CPU. I found: --primary-config-path=C:\example

That is correct.

Why not exists in Environment/Options IDE?

Where should it load such a setting from? In the directory indicated by that setting? And where should the IDE load that setting from? Etc.

It could be a readonly informational options, but changing it in the IDE is not useful.

Vincent

Reply by email

Hans-Peter Diettrich
to Marcos Douglas: I found: --primary-config-path=C:\example Why not exists in Environment/Options IDE?
I found: --primary-config-path=C:\example Why not exists in Environment/Options IDE?

Because the setting will be known only *after* the default configuration has been read. Then that configuration had to be thrown away, and read again from the new source - which in turn could specify yet another path...

On Windows you can add any number of Lazarus icons to your desktop, and specify their distinct primary config paths. Other desktops may have similar features.

DoDi

Reply by email

Marcos Douglas
to Hans-Peter Diettrich
Vincent Snijders wrote 5 lines
Where should it load such a setting from? In the directory indicated by that setting? And where should the IDE load that setting from? Etc. It could be a readonly informational options, but changing it in the IDE is not useful.

The readonly information is a good ideia :)

Hans-Peter Diettrich wrote 7 lines
Because the setting will be known only *after* the default configuration has been read. Then that configuration had to be thrown away, and read again from the new source - which in turn could specify yet another path... On Windows you can add any number of Lazarus icons to your desktop, and specify their distinct primary config paths. Other desktops may have similar features.

Sorry guys, for my crazy idea =)
But I have another doubt: The Lazarus should be started by startlazarus.exe, right? If I use arguments in lazarus.exe, how startlazarus.exe knows about this parameters when I rebuild the IDE?

Thanks,
MD.

Reply by email

Zaher Dirkey
to Marcos Douglas
Marcos Douglas wrote 7 lines
Sorry guys, for my crazy idea =) But I have another doubt: The Lazarus should be started by startlazarus.exe, right? If I use arguments in lazarus.exe, how startlazarus.exe knows about this parameters when I rebuild the IDE?

There is old topic, it is easy to change the source of Lazarus ide

http:/msg07179.html

Thanks

Zaher Dirkey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100713/8b634c3e/attachment.html>

Reply by email

Hans-Peter Diettrich
to Zaher Dirkey
Show quoted text 8 lines
On Tue, Jul 13, 2010 at 3:14 PM, Marcos Douglas < <mailto:>> wrote: Sorry guys, for my crazy idea =) But I have another doubt: The Lazarus should be started by startlazarus.exe, right? If I use arguments in lazarus.exe, how startlazarus.exe knows about this parameters when I rebuild the IDE?

In case this question has not yet been answered:

IMO startlazarus is only used when rebuilding Lazarus itself, from the IDE, to rename and start the new lazarus.exe. Please correct me if I'm wrong.

DoDi

Reply by email

Marcos Douglas
to Zaher Dirkey: There is old topic, it is easy to change the source of Lazarus ide http:/msg07179.html…

Hi Zaher,

2010/7/13 Zaher Dirkey :

Show quoted text 5 lines
There is old topic, it is easy to change the source of Lazarus ide http:/msg07179.html

I did not understand. I not want to change the source... I want to change only settings files of Lazarus.

I followed the link and saw (in others links on the thread) the same arguments to 'lazarus': --primary-config-path=C:\example

I think this solve my problem (sorry, I did not test yet). I was thinking... maybe 'startlazarus' knows about the arguments passed to 'lazarus'. I will test this tomorrow.

thanks,
MD.

Reply by email

Mattias Gaertner
to Hans-Peter Diettrich: In case this question has not yet been answered: IMO startlazarus is only used when…
Show quoted text 15 lines
Zaher Dirkey schrieb: > On Tue, Jul 13, 2010 at 3:14 PM, Marcos Douglas < > <mailto:>> wrote: > > > Sorry guys, for my crazy idea =) > But I have another doubt: The Lazarus should be started by > startlazarus.exe, right? If I use arguments in lazarus.exe, how > startlazarus.exe knows about this parameters when I rebuild the IDE? In case this question has not yet been answered: IMO startlazarus is only used when rebuilding Lazarus itself, from the IDE, to rename and start the new lazarus.exe. Please correct me if I'm wrong.

startlazarus is used when restarting the IDE. Under windows, where the exe files are locked it renames them.
startlazarus passes most parameters to the IDE and vice versus. startlazarus has some smart heuristics to find the right lazarus executable, if there are several. For example when there is a custom built one. In doubt it asks.
Because of the last feature the windows and linux installer sets up the desktop/menu icon to start startlazarus and not the default lazarus executable.
The OS X installer should do the same, but there
was some trouble with the bundle. I have to check.

Mattias

Reply by email