On 18/10/2011 21:44, Michael Van Canneyt wrote: > > use DBUS to query HAL. Normally you should get most of the info. > > I wrote an article on how to do this in FPC. if you want, I can send it to > you.
Would you mind sending me that article too, please. I'm using Turbo Power's OnGuard in our products, and improved the hardware detection code under Linux (CPU, network card, OS, user, HDD etc), but I did not use DBUS at all, I simply parsed the data in /proc/* and /dev/disk/* The hard drive make and serial number was a tough one, especially without forcing root access, but I did manage. I also asked in the mailing list about other distros and if they have the same /dev/disk/* information, and most modern Linux distros did. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal