Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: No on-screen keyboard on the 7-inch local display?
#14
(09-15-2022, 12:15 AM)Tim Curtis Wrote: If it could be made to only load when chromium-browser is detected (which indicates locally attached display) then much better.

There is a code block early in scripts-panels.js that does chromium detection.

Code:
       // CoverView auto-display
       var userAgent = navigator.userAgent;
       if (userAgent.indexOf('X11; CrOS armv') != -1 || userAgent.indexOf('X11; CrOS aarch64') != -1) {
           GLOBAL.chromium = true;
       } else {
           GLOBAL.chromium = false;
       }

That's the idea, of course.

Even better, I wanted to change the index.php accordingly... but nevertheless, even if we do retrieve both js and css files, they're not heavy at all; then we initialize the whole thing only if we detect chromium.

Sounds weird, though... on a Linux machine, such as my laptop, how will it behave...? I think it'll detect chromium too.

I'll try it first, then will decide.

Cheers, Al.
Reply


Messages In This Thread
RE: No on-screen keyboard on the 7-inch local display? - by Nutul - 09-15-2022, 10:22 AM

Forum Jump: