2019-02-24, 15:30
(2019-02-23, 17:09)Kupo91 Wrote:That code are wrong, try to set like in this code(2019-02-23, 15:48)latts9923 Wrote: @Kupo91Thank you very much it almost worked only issue: If I go into "REPLACE THIS MENU WITH..." and click on "CHROME LAUNCHER" it immediately starts the app xD
Well, no, it's not necessary. It's a want, not a need. Haha.
Try this. Close KODI, open IncludesMenuCustom and find the following code...
Code:<item>
<!-- Add-on de imagem -->
<!-- 6500 -->
<label>31021</label>
<property name="id">custom</property>
<onclick>Skin.SetString($INFO[Skin.String(custom_master)],addons)</onclick>
<onclick>Skin.SetAddon($INFO[Skin.String(custom_path)],xbmc.addon.image)</onclick>
<include>DefaultReset</include>
</item>
Under that, add this...
Code:<item>
<!-- Chrome Launcher -->
<label>CHROME LAUNCHER</label>
<property name="id">custom</property>
<onclick>System.ExecWait("/usr/bin/app-google-chrome.py")</onclick>
<include>DefaultReset</include>
</item>
Now open KODI, go to Settings>Customise Main Menu and go to an "EMPTY" selection in your menu list. Select "REPLACE THIS MENU WITH..." and in the OPTIONS list you should see "CHROME LAUNCHER".
Code:
<item>
<!-- Chrome Launcher -->
<label>CHROME</label>
<property name="id">custom</property>
<onclick>Skin.SetString($INFO[Skin.String(custom_master)],addons)</onclick>
<onclick>Skin.SetString($INFO[Skin.String(custom_action)],System.ExecWait("/usr/bin/app-google-chrome.py"))</onclick>
<include>DefaultReset</include>