[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2
Hey logi85 I have updated your launchBrowser.sh script for kodibuntu

As it runs no window manager I have to launch one to get full screen to work and then kill it again when we exit.

I also had to move the xdotool mouse move to between the blackbox launch and the chrome launch as you recommended to launch chrome without a & other wise it would not be executed until after chrome exits.


#!/bin/bash

# copy from https://github.com/andrewleech/plugin.vi...browser.sh

# Managed to resolve the issues with, but will leave this here anyway, as its a good fallback
CHROME_STARTED=`ps -ef | grep google-chrome | grep -v "grep" | wc -l`
if [ $CHROME_STARTED -gt 0 ]; then
exit 1;
fi

# lets find out if xdotool actually exist before we try to call them.
command -v xdotool >/dev/null 2>&1
XDOTOOL=$?

url=$1

/usr/bin/blackbox &
if [ $XDOTOOL -eq 0 ]; then
# no point sleeping if xdotool is not installed.
#sleep 5
xdotool mousemove 9999 9999 click 1
else
echo "xdotool is not installed, can't remove cursor"
fi
# notice the ampersand to send google chrome into back ground so that the script continues and we execute the xdotool below
/usr/bin/google-chrome --start-maximized --disable-translate --disable-new-tab-first-run --no-default-browser-check --no-first-run --kiosk "$url"
CHROME_PID=$!

# wait for google-chrome to be killed
#wait $CHROME_PID
killall blackbox >/dev/null 2>&1
exit


But I still get the playback relaunching after using the back button to exit back to kodi.

Any ideas?
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
[RELEASE] NetfliXBMC - EMPTY LISTS - by Nibar - 2015-12-08, 03:38
RE: [RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2 - by sirhcjw - 2015-12-27, 04:27
Logout Mark Read Team Forum Stats Members Help
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 217