Re: [fpc-devel] GetAppConfigFile implementation

2008-12-22 Thread Carolos
How about if Lazarus is in the Program Files directory, it searches AppData first. If not it searches it's directory first then AppData. On Mon, Dec 22, 2008 at 4:28 PM, Alexander Klenin wrote: > On Sat, Dec 20, 2008 at 21:48, Michael Van Canneyt > wrote: > > I specially chose local because I d

Re: [fpc-devel] GetAppConfigFile implementation

2008-12-22 Thread Alexander Klenin
On Sat, Dec 20, 2008 at 21:48, Michael Van Canneyt wrote: > I specially chose local because I don't want it to be roaming data. This is actually a (minor) problem sometimes -- e.g. students at unversity where I work have roaming profiles so the could log in and work prom any PC in the domain. Wit

Re: [fpc-devel] GetAppConfigFile implementation

2008-12-22 Thread Vincent Snijders
Zaher Dirkey schreef: I have external hard disk (USB) and use it in both work and my home, put every thing on it, the problem after Lazarus using that AppData folder i lost between home and work, is any way to change Lazarus config folder to special folder (i will point to my usb hard). Yes,

Re: [fpc-devel] GetAppConfigFile implementation

2008-12-22 Thread Zaher Dirkey
I have external hard disk (USB) and use it in both work and my home, put every thing on it, the problem after Lazarus using that AppData folder i lost between home and work, is any way to change Lazarus config folder to special folder (i will point to my usb hard). On Sat, Dec 20, 2008 at 3:48 PM

Re: [fpc-devel] GetAppConfigFile implementation

2008-12-20 Thread Luca Olivetti
En/na Vincent Snijders ha escrit: I thought that local version is not stored on the network and is not available in the roaming profile. Putting a 100 MB Lazarus exe in the CSIDL_APPDATA is not a good thing, it ruins startup time (and shutdown Well, I don't think that an executable is conf

Re: [fpc-devel] GetAppConfigFile implementation

2008-12-20 Thread Michael Van Canneyt
On Sat, 20 Dec 2008, Vincent Snijders wrote: > Felipe Monteiro de Carvalho schreef: > > Hello, > > > > GetAppConfigFile in win32 uses CSIDL_LOCAL_APPDATA to be implemented. > > > > I did some research, and I think that CSIDL_APPDATA is a better choice: > > > > http://blogs.msdn.com/oldnewthi

Re: [fpc-devel] GetAppConfigFile implementation

2008-12-20 Thread Vincent Snijders
Felipe Monteiro de Carvalho schreef: Hello, GetAppConfigFile in win32 uses CSIDL_LOCAL_APPDATA to be implemented. I did some research, and I think that CSIDL_APPDATA is a better choice: http://blogs.msdn.com/oldnewthing/archive/2005/07/01/434647.aspx They are very similar, but the LOCAL vers

[fpc-devel] GetAppConfigFile implementation

2008-12-20 Thread Felipe Monteiro de Carvalho
Hello, GetAppConfigFile in win32 uses CSIDL_LOCAL_APPDATA to be implemented. I did some research, and I think that CSIDL_APPDATA is a better choice: http://blogs.msdn.com/oldnewthing/archive/2005/07/01/434647.aspx They are very similar, but the LOCAL version is a bit more specifc, and the non-

Re: [fpc-devel] GetAppConfigFile

2008-10-04 Thread Graeme Geldenhuys
On Sat, Oct 4, 2008 at 8:27 PM, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: > The parameter exists to choose if you wish the local or global config file. > > Please don't change this. +1 I have cases in certain projects where I want to look at global and sometimes and local config file

Re: [fpc-devel] GetAppConfigFile

2008-10-04 Thread Felipe Monteiro de Carvalho
The parameter exists to choose if you wish the local or global config file. Please don't change this. -- Felipe Monteiro de Carvalho ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] GetAppConfigFile

2008-10-04 Thread Vinzent Höfler
Micha Nelissen wrote: Vinzent Höfler wrote: Often, after a first install, the local config does not exist yet (or the user may have deleted it), so your proposed approach would completely disable the local config then, because without the proper No, when saving you always save to the local c

Re: [fpc-devel] GetAppConfigFile

2008-10-04 Thread Luca Olivetti
En/na Vinzent Höfler ha escrit: Agreed. But it's as it is, I guess. It was broken so often, can't do that again... ;) I think it's still broken, at least under windows (for roaming profiles to work it should return CSIDL_APPDATA and not CSIDL_LOCAL_APPDATA), but I guess that's a matter of op

Re: [fpc-devel] GetAppConfigFile

2008-10-04 Thread Michael Van Canneyt
On Sat, 4 Oct 2008, Micha Nelissen wrote: > Hi, > > Why is there a parameter to GetAppConfigFile? I'd suggest something like: > > function GetAppConfigFile: string; > begin > { first look for user specific config file } > Result := GetAppConfigFile(false); > if FileExists(Result) then >

Re: [fpc-devel] GetAppConfigFile

2008-10-04 Thread Micha Nelissen
Vinzent Höfler wrote: Often, after a first install, the local config does not exist yet (or the user may have deleted it), so your proposed approach would completely disable the local config then, because without the proper No, when saving you always save to the local config file, because mos

Re: [fpc-devel] GetAppConfigFile

2008-10-04 Thread Vinzent Höfler
Micha Nelissen wrote: Why is there a parameter to GetAppConfigFile? I'd suggest something like: function GetAppConfigFile: string; begin { first look for user specific config file } Result := GetAppConfigFile(false); if FileExists(Result) then exit; { otherwise use global one } Re

Re: [fpc-devel] GetAppConfigFile

2008-10-04 Thread Aleš Katona
Dňa So, 2008-10-04 o 12:23 +0200, Micha Nelissen napísal: > Hi, > > Why is there a parameter to GetAppConfigFile? I'd suggest something like: > > function GetAppConfigFile: string; > begin >{ first look for user specific config file } >Result := GetAppConfigFile(false); >if FileExists

[fpc-devel] GetAppConfigFile

2008-10-04 Thread Micha Nelissen
Hi, Why is there a parameter to GetAppConfigFile? I'd suggest something like: function GetAppConfigFile: string; begin { first look for user specific config file } Result := GetAppConfigFile(false); if FileExists(Result) then exit; { otherwise use global one } Result := GetAppConfi

Re: [fpc-devel] GetAppConfigFile() output issue

2007-09-12 Thread Graeme Geldenhuys
On 12/09/2007, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > Is this a oversight or by design? > > This is by design. > > The Free Desktop Project's recommendations were used for the current > implementation. > > I assume that for symmetry reasons, you would like to see it the same in > both ?

Re: [fpc-devel] GetAppConfigFile() output issue

2007-09-12 Thread Michael Van Canneyt
On Wed, 12 Sep 2007, Graeme Geldenhuys wrote: > Hi > > I created a simple console application that executes the following commands... > > > writeln('GetAppConfigDir(False);'); > writeln(' ' + GetAppConfigDir(False)); > writeln('GetAppConfigFile(False);'); > writeln(' ' + GetAppCon

[fpc-devel] GetAppConfigFile() output issue

2007-09-12 Thread Graeme Geldenhuys
Hi I created a simple console application that executes the following commands... writeln('GetAppConfigDir(False);'); writeln(' ' + GetAppConfigDir(False)); writeln('GetAppConfigFile(False);'); writeln(' ' + GetAppConfigFile(False)); writeln('ApplicationName'); writeln(' ' + Ap