Posts: 1
Joined: Jan 2015
Reputation:
0
Hi Corona, first of all thank you for forking AddonScriptorDE's Chrome Launcher and making it work perfectly on Kodi. I only wish your post was more obvious/visible as it took me a few days of searching and trying different things before I found your thread and the answers to my problem.
For anyone wanting to have an Apple TV like HTPC with standalone KODI (XBMCbuntu) i.e. not running on Windows, LINUX, Mac desktop, your Chrome launcher allows a proper web browser experience and other online streaming sites like Netflix, BBC iPlayer, etc to be incorporated in a really slick and seamless manner.
There are two small problems that I have come up against which I wanted to report and hopefully get advice on, which although not directly related to your launcher would improve the experience.
Problem 1 - How to set the OpenBox key bindings so that I can create a simple "Escape" key exit for Chrome that matches the rest of my Kodi operation but that only operates for your Chrome Launcher. I have edited the RC.XML file removing all default keyboard bindings and added just one conditional binding that should check if the window in focus is a "browser" role window and if so allow the "Escape" key to exit Chrome. Then once back in the Kodi Window the Escape should not operate as the window in focus is no longer a "browser" role window,
The section of the RC.XML file I created is shown below. I am not that experienced in LINUX and have absolutely no experience of messing about with OpenBox and although this conditional "If" Action is documented there is only one example of a conditional action and it is different to what I am trying to do.
There is surprisingly little information about OpenBox and Kodi, so even getting to this stage has taken me a lot of time and I have tried quite a few different ways to write this conditional statement including checking the window title for "* - Google Chrome". I used the obxprop | grep "^_OB_APP" command to find out what properties the Chrome Launcher window and the Kodi window had.
<keyboard>
<!-- Keybindings for windows -->
<keybind key="Escape">
<action name="If">
<query target="focus">
<role>"browser"</role>
</query>
<then>
<action name="Close"/>
</then>
<else>
</else>
</action>
</keybind>
</keyboard>
This RC.XML file does in fact allow me to close the Chrome window by pressing the "Escape" key so it is half working, the problem is that if the "Escape" key is pressed whilst in the normal Kodi window, it closes the Kodi Openbox window and goes to the Login Screen. So either the query is returning the wrong window info or the OpenBox "If" conditional statement I have defined has the wrong logic.
Problem 2 - if you use the "Add Website" feature of your Chrome window to setup some sites and then edit the Kodi Menu to launch straight in to say "BBC iPlayer" this works really well but when you exit you are returned to a programs menu with one item shown "Program Add-Ons". Is there a way to make Kodi return you to the home screen after exiting your Chrome Launcher ?
Hope you can help and thanks again for your good work on the Chrome Launcher - it is a "secret" gem of an Add-On for anyone running stand alone Kodi.