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!
2 Likes
Yes, I use that too from long time. Works perfectly
1 Like
system
Closed
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.