[Lazarus] Configuration data in Linux?

Ċ½ilvinas Ledas zilvinas.ledas at dict.lt
Tue Sep 28 10:16:03 CEST 2010


On 2010-09-28 09:24, Bo Berglund wrote:
> So can I get some advice on:
> - What is the common way to store config data on Linux?
>    Ini files are probably not used since they are Windowsisms,
>    but is there some other easily used way where one can simply
>    store and retrieve individual values without scanning through
>    a text file?
>
> - Where is the agreed location for such data?
>
In Lazarus you can use:
function GetAppConfigDirUTF8(Global: Boolean): string;
function GetAppConfigFileUTF8(Global: Boolean; SubDir: boolean = false): 
string;

to get correct config dir/file name in (various versions of) 
windows/linux/osx.


Regards
Ċ½ilvinas




More information about the Lazarus mailing list