<div dir="ltr">2011/7/31 Chris Kelling <span dir="ltr"><<a href="mailto:kellingc@cox.net">kellingc@cox.net</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div link="blue" vlink="blue" lang="EN-US">
<div>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">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?)</span></font></p></div></div></blockquote><div><br>You are thinking it wrong IMHO. <br>1. FPC's TRegistry handle that for you<br>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.<br>
3. System.d is a process boot system and not a system configuration saving<br>4. GTK have central setting system caled gconf, it was built in the idea of registry like system. Qt does not have one.<br>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).<br>
<br>6. OS X is based on FreeBSD (open source unix) and not Linux. Darwin is an engine inside OS-X.<br>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).<br>
<br><br>Ido<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div link="blue" vlink="blue" lang="EN-US"><div><p class="MsoNormal">
<font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<div>
<div class="MsoNormal" style="text-align:center" align="center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> ik
[mailto:<a href="mailto:idokan@gmail.com" target="_blank">idokan@gmail.com</a>] <br>
<b><span style="font-weight:bold">Sent:</span></b> Sunday, July 31, 2011 14:13<br>
<b><span style="font-weight:bold">To:</span></b> Lazarus mailing list<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [Lazarus] RE :
Determining OS</span></font><u></u><u></u></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" color="navy" face="Times New Roman"><span style="font-size:12.0pt;color:navy">[edited for
brevity]<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" color="navy" face="Times New Roman"><span style="font-size:12.0pt;color:navy"><u></u> <u></u></span></font></p>
</div><div class="im">
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">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.<br>
<br>
It's all depends on what he requires to do.<u></u><u></u></span></font></p>
</div>
</div>
</blockquote>
</div></div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
</div>
</div>
<br>--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br></blockquote></div><br></div>