[Lazarus] RE : Determining OS

ik idokan at gmail.com
Sun Jul 31 20:37:59 CEST 2011


2011/7/31 Chris Kelling <kellingc at cox.net>

>  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.  From what I’m gathering, it would be best to just do a simple config
> or ini file in the root directory of the program.  I’m thinking that when
> creating the installer, I will ask where the program will reside, and
> provide a default that is platform independent.  That way all I need to do
> is provide the deb or rpm for linux, the msi for windows, and what ever unix
> and apple require (OS X is a flavor of Darwin, thus the debain packager
> maybe?)
>

You are thinking it wrong IMHO.
1. FPC's TRegistry handle that for you
2. In non Windows machines, you save custom settings in the home directory
of the users. Mostly under a hidden directory with the program name.
3. System.d is a process boot system and not a system configuration saving
4. GTK have central setting system caled gconf, it was built in the idea of
registry like system. Qt does not have one.
5. Each package for specific Linux distro solve you the requirement to
understand in the program what is the exact distro. You can even hard code
that data using IFDEF and use FPC to compile using the proper DEFINE (I wish
there would be a better tool for that though).

6. OS X is based on FreeBSD (open source unix) and not Linux. Darwin is an
engine inside OS-X.
7. OS-X have it's own package manager that use sit and dmg files (I don't
really know Mac that well to fully expand it).


Ido

> ****
>
> ** **
>  ------------------------------
>
> *From:* ik [mailto:idokan at gmail.com]
> *Sent:* Sunday, July 31, 2011 14:13
> *To:* Lazarus mailing list
> *Subject:* Re: [Lazarus] RE : Determining OS****
>
> ** **
>
> ** **
>
> [edited for brevity]****
>
> ** **
>
>  But the original person that asked the question should explain better
> what he is looking for. It might not require to detect the distro itself for
> example, or to allow the package builder to tweak things, or at the first
> run to ask the distro from a list of supported distro and save it in
> configuration files.
>
> It's all depends on what he requires to do.****
>
>  ** **
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110731/65ebc046/attachment-0003.html>


More information about the Lazarus mailing list