← Back to team overview

ubuntu-phone team mailing list archive

Re: Find out if running on a phone

 

> 
> Right... forgot that it's a gerrit MR, not Launchpad:
> 
> https://codereview.qt-project.org/#/c/101049/ <https://codereview.qt-project.org/#/c/101049/>

Thanks for that!

I just had a look at https://codereview.qt-project.org/#/c/101049/15/src/systeminfo/qinputinfo.h <https://codereview.qt-project.org/#/c/101049/15/src/systeminfo/qinputinfo.h>

But this requires an input to then find out what the source was (mouse, touch screen, etc.).

I need to know whether I’m running on touch or on the desktop, without any input events.

Any other ideas? Is there some place in the filesystem I could look at, or test some env var or whatever?
It has to work under confinement though.

Thanks,

Michi.

Follow ups

References