How to obtain OS and HW info?
- From: Andrea Giammarchi <andrea giammarchi gmail com>
- To: javascript-list <javascript-list gnome org>
- Subject: How to obtain OS and HW info?
- Date: Tue, 15 Mar 2016 11:32:56 +0000
Dear all,
I wonder if there's any better way than spawning command line "queries" to obtain some HW info, like those shown in GNOME Details.
As example, I'm replicating node.js `os` module in here:
but I couldn't find a GLib or GJS way to retrieve basic info such `uname -a` so I have to manually parse some output out of commands that are surely not portable cross platform (e.g. OSX has no `/proc/cpuinfo` or `/proc/loadavg` or `uptime -s` command )
Thanks in advance for any sort of hint/link/idea.
Best Regards
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]