[Lazarus] Determining OS

Marco van de Voort marcov at stack.nl
Sun Jul 31 23:10:51 CEST 2011


On Sun, Jul 31, 2011 at 04:43:44PM +0200, Graeme Geldenhuys wrote:
> 2011/7/31 ik <idokan at gmail.com>:
> > Please note that system.d is Fedora implementation (v15) so for Linux you
> > need to detect also the Linux distro, and that's a bit more complicated.
> 
> Any distro worth using should support the LSB standards. With that
> being said, you can use the 'lsb_release' command to find out exactly
> what distribution and version is being used.

Not installed by default on Fedora 15:

[marcov at atlas ~]$ lsb_release
bash: lsb_release: command not found...

so you can't really rely on it. Apparently the standard is optional.




More information about the Lazarus mailing list