[fpc-pascal] Detecting what is the linux distro

silvioprog silvioprog at gmail.com
Mon Oct 11 14:08:25 CEST 2010


2010/10/11 ik <idokan at gmail.com>

> Hello List,
>
> I'm looking for a proper way to detect the type of Linux distro.
>
> At first I thought about /etc/issue, but it seems that some are abusing
> this file.
> Many distro's uses /etc/XXXX__release, where XXXX is their name, but it's
> not a proper way either to detect, because not everyone uses it.
>
> Any additional ideas ?
>
>
> Thanks,
>
> Ido
>

Please, see the function LSGetLinuxDistro (
code.google.com/p/lazsolutions/source/browse/trunk/Core/LSUtils.pas#55);

-- 
Silvio Clécio,
*programmer* *ObjectPascal*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20101011/d4f73c50/attachment.html>


More information about the fpc-pascal mailing list