[fpc-devel] GetAppConfigFile() output issue
Michael Van Canneyt
michael at freepascal.org
Wed Sep 12 12:13:32 CEST 2007
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(' ' + GetAppConfigFile(False));
> writeln('ApplicationName');
> writeln(' ' + ApplicationName);
>
>
> Below is the output on Windows and Linux. I think there is a
> inconsistency between the output for GetAppConfigFile(False) under
> both platforms.
>
> I assume 'Application Data' under Windows is equivalent to '.config'
> under Linux. If so then...
>
> Under Windows it includes a directory equivalent to the application
> name or GetAppConfigDir(False) and then the *.cfg file.
>
> Under Linux in contains one directory less. The directory equivalent
> to the application name is missing.
>
> 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 ? :-)
Michael.
>
>
>
> ----------- Windows 2000 -----------------
> GetAppConfigDir(False);
>
> C:\Documents and Settings\Graeme\Local Settings\Application Data\project1
>
> GetAppConfigFile(False);
>
> C:\Documents and Settings\Graeme\Local Settings\Application
> Data\project1\project1.cfg
>
> ApplicationName
>
> project1
>
>
>
>
> ----------- Linux -----------------------
> GetAppConfigDir(False);
> /home/graemeg/.config/project1
> GetAppConfigFile(False);
> /home/graemeg/.config/project1.cfg
> ApplicationName
> project1
>
>
>
> Regards,
> - Graeme -
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
More information about the fpc-devel
mailing list