Hi all
Congrats anyone contributing to these addons
I am using NetfliXBMC and Chrome Launcher on a bleeding edge gentoo
linux HTPC with unstable chrome.
Since XBMC runs on window manager (evilwm) I do not need openbox.
I noticed script.sh is DOS style (\r) so I UNIX converted it since,
obviously, linux could not run unexisting bash\r |-)
here is mine:
--
xbmc@
htpc ~ $ ls -al .xbmc/addons/plugin.program.chrome.launcher/script.sh
-rwxr-xr-x 1 htpc htpc 407 Sep 30 02:57 .xbmc/addons/plugin.program.chrome.launcher/script.sh
xbmc@
htpc ~ $ id xbmc
uid=1000(htpc) gid=1000(htpc) groups=1000(htpc)
xbmc@
htpc ~ $ cat .xbmc/addons/plugin.program.chrome.launcher/script.sh
#!/bin/bash
shift $(expr ${#} - 1)
echo /usr/bin/chrome \
--start-maximized \
--disable-translate \
--disable-new-tab-first-run \
--no-default-browser-check \
--no-first-run \
--kiosk \
\""${@}"\" > /home/xbmc/tmp/chrome.cmd
/usr/bin/chrome \
--start-maximized \
--disable-translate \
--disable-new-tab-first-run \
--no-default-browser-check \
--no-first-run \
--kiosk \
\""${@}"\"
exit 0
--
Note I needed to add extra surrounding "" (without : no go)
Note also that I got rid of --user-agent= string which was unquoted as
well. I do have it set correctly for netflix.com anyway in browser
spoofer plugin.
I echo command for later inspection, it shows:
--
xbmc@
htpc ~ $ cat /home/xbmc/tmp/chrome.cmd
/usr/bin/chrome --start-maximized --disable-translate --disable-new-tab-first-run --no-default-browser-check --no-first-run --kiosk "https://www.netflix.com/SwitchProfile?tkn=2KQSI7VHTFBARHMFGSCGRB745E&nextpage=http%3A%2F%2Fwww.netflix.com%2FWiPlayer%3Fmovieid%3D70222216"
--
This command works *-perfectly-* from UNIX command line!, but, on XBMC as such, it opens chrome
half width complaining 'URL not found'.
I am kind of confused now... I guess "close but no cigar"
Thanks