What’s the best/most reliable way, in a Kodi Python addon, to detect it’s running under CoreELEC?
I know xbmc.getCondVisibility('system.platform.linux') - but that’s too generic. Is there a good way to detect CE more explicitly?
Thanks for any help!
vpeter
2
Reading file /etc/os-release ?
Thank you
I think I might actually go with:
if xbmc.getCondVisibility('System.HasAddon(service.coreelec.settings)'):
…as that seems to work and saves opening a file!
Yes, I use that too from long time. Works perfectly