System.Platform boolean condition for RPi
#1
I would like to make an add-on setting specific to the Raspberry Pi platform and was hoping to be able to do something like

Code:
enable="System.Platform.RPi"

but I didn't find a boolean condition for Raspberry Pi in the System.Platform section here http://wiki.xbmc.org/?title=List_of_Boolean_Conditions.

Is there one that just isn't documented? It seems strange that there is one for ATV2 but not RPi.
Leopold's Repository: Home of LibreELEC Dev Updater ...
Reply
#2
Which distribution of XBMC on the Pi are you using?

RaspBMC has the user "pi", so pwd.getpwuid(1000)[0] would tell you whether that user existed.

Don't know about OE though.
Reply
#3
This is for OpenELEC.

I can tell which platform I am on by looking at /etc/arch but as far as I know there is no way to enable/disable an add-on setting based on this.

I answered my own question eventually by going to the source -> https://github.com/xbmc/xbmc/blob/Frodo/...#L416-L422

So there is no boolean condition to test for the Raspberry Pi platform.
Leopold's Repository: Home of LibreELEC Dev Updater ...
Reply
#4
In case anyone comes across this thread, I added a boolean condition for the Raspberry Pi which will be available in the Gotham release -> https://github.com/xbmc/xbmc/pull/2973
Leopold's Repository: Home of LibreELEC Dev Updater ...
Reply

Logout Mark Read Team Forum Stats Members Help
System.Platform boolean condition for RPi0