[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2
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)
Reply


Messages In This Thread
Who's Watching is empty? - by RiverBend - 2015-01-08, 18:55
Full-screen mode - by oakertood - 2015-03-29, 01:08
25% - by Mattlock - 2015-07-06, 03:56
Additional/Original Browser Option? - by durv - 2015-09-07, 05:07
RE: [RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2 - by Falkor - 2015-09-24, 00:39
[RELEASE] NetfliXBMC - EMPTY LISTS - by Nibar - 2015-12-08, 03:38
Logout Mark Read Team Forum Stats Members Help
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 217