Hi All!!
Long time reader but this is my first post and I hope it helps someone.
My system is an Ubuntu-gnome 14.04 and since I insatlled NetfilXBMC every time I exit Chrome (ctrl+w) it lost focus on Kodi making me select it again to get focus. (Sorry about my english by the way).
I find a workaround and I wanted to share with all of you, it is not elegant, it is not pretty, but it works for me, maybe it works for someone else.
In "default.py" I inserted a line after line number 751, just after this one:
Quote:xbmc.executebuiltin("RunPlugin(plugin://plugin.program.chrome.launcher/?url="+urllib.quote_plus(url)+"&mode=showSite&kiosk="+kiosk+profileFolder+")")
The line I inserted is:
Quote:os.system('sleep 5; while [ "$(ps -ef | grep -i "plugin.video.netflixbmc/chrome" | grep -v grep)" != "" ]; do sleep 2; done ; wmctrl -a Kodi')
With this change, every time I exit Chrome (ctrl+w) the focus is in Kodi instead of an empty desktop.
I hope this will help someone.
BTW: You must have installed wmctrl (sudo apt-get install wmctrl)