Kodi Community Forum

Full Version: Settings, type action : open a specific end point of current addon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Is it possible somehow to tell settings to open a specific endpoint in my addon ? The latter does not work... /languages is an entry point in my plugin...
xml:
<setting id="select_language" type="action" label="32002" action="RunPlugin(plugin.yab.test, /languages)" option="close" />

Doable ?

Thanks.
Yann
you'll likely need to use an ActivateWindow() action.

the easiest way to get the needed code is to add the endpoint to your favourites,
next open the favourites.xml file (found in the userdata folder) and search for the bit that looks like
ActivateWindow(10025,&quot;plugin://plugin.video.youtube/special/popular_right_now/&quot;,return)
Hey,

Thanks i

Unfortunately, when I click, noting happens :
xml:
<setting id="select_language" type="action" label="32002" action="ActivateWindow(10025, plugin://plugin.yab.test/languages)" option="close" />

Logs says  nothing in fact...

Sad
Frustrating. Favourite works like a charm, and not action from settings... Sad
OK it's fixed using Container.Update Smile

Thanks
off topic, sorry. can be deleted.