[Lazarus] RE : Determining OS
Graeme Geldenhuys
graemeg.lists at gmail.com
Sun Jul 31 23:34:02 CEST 2011
2011/7/31 Chris Kelling :
> I am looking to distribute my software to pc, linux, unix, and mac users.
> I’m using the registry in Windows, and was going to use systemd for linux.
Use the RTL function GetAppConfigDir(True) - this will normally return
'/etc' under Linux and any Unix system. GetAppConfigDir(False) will
return a directory that is writable for any normal user (no admin or
root rights required).
Also take a look at GetAppConfigFile(). This might even be better than
the above mentioned function.
--
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
More information about the Lazarus
mailing list