Thread: Jolla C
View Single Post
Feathers McGraw's Avatar
Posts: 654 | Thanked: 2,368 times | Joined on Jul 2014 @ UK
#840
Originally Posted by Schturman View Post
Someone know how to check in terminal if this JollaC or Jolla1 or Tablet ?
Thanks
You want /etc/hw-release, if you're using it in an app you can treat it like a settings file and look up values like this:

Code:
QSettings hwFile("/etc/hw-release", QSettings::IniFormat);
QString name = hwFile.value("NAME").toString();
qDebug() << "Name detected from /etc/hw-release is: " << name;
(from https://github.com/sam-hobbs/harbour...ledcontrol.cpp)
 

The Following 7 Users Say Thank You to Feathers McGraw For This Useful Post: