Using Java 6 in OSX, how can I determine if the current hardware is a Desktop or a Laptop? I was looking through System.getProperty(), but didn’t find anything definitive.
Using Java 6 in OSX, how can I determine if the current hardware is
Share
You can query
ioregfor themodelviaProcessBuilder, as shown here.Addendum: Similar information may be obtained from the output of
system_profiler.