Kodi Community Forum

Full Version: Adding a shortcut to launch external application in Estuary main vertical menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Previously, I've been able to do this for Confluence using this guide:

http://forum.kodi.tv/showthread.php?tid=68858

Which adds a shortcut to the main menu that does XBMC.System.Exec("/path/to/application"). I'd like to do the same for Estuary, but the skin seems a bit more complex and I haven't managed to grok the syntax so far.

Is there anyone with the know-how who would be so kind as to give a few pointers?
Ok, it wasn't that hard once I found the correct place. Here's a diff:

Code:
--- a/addons/skin.estuary/1080i/Home.xml    2016-04-07 20:26:46.780304306 +0200
+++ b/addons/skin.estuary/1080i/Home.xml    2016-04-07 20:51:29.124300049 +0200
@@ -1090,6 +1090,12 @@
                                <property name="id">weather</property>
                                <visible>!Skin.HasSetting(HomeMenuNoWeatherButton)</visible>
                            </item>
+                            <item>
+                                <label>Emulators</label>
+                                <onclick>XBMC.System.Exec(/path/to/emulators.sh)</onclick>
+                                <thumb>icons/home/addons.png</thumb>
+                                <property name="id">emulators</property>
+                            </item>
                        </content>
                    </control>
                </control>

This adds a shortcut "Emulators" below the weather item that launches the script emulators.sh when pressed.