Assuming that your 4 is related to your 1, I tweaked System Monitor for the 
tablet, and I just chose whichever subdir of power_supply had the word battery 
into. I figured that would at least stand some chance of working with as yet 
unknown devices:

https://github.com/abranson/harbour-systemmonitor/commit/faf9894471bccb7d379a907cdcc642c25142b992

or of course crash when there's no match :)

On 14/03/2016 5:03pm, Pami Ketolainen wrote:
On 03/14/2016 04:49 PM, Michael Fuchs wrote:
Right, the colons where missing. But this was just an example, which I
know from the documentation. I would need it to have two different
values for tablet and phone. It's got to be sth like:

arm: VAR = ARMVALUE
x86_32: VAR = x86VALUE


There probably is a way to detect the architecture during build time,
but in general that is not the right way to differentiate between
different types of devices. Because there could be ARM tablets and x86
phones.

Most likely if you need to do some decisions based on the device type,
you should do that at run time.

_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to