Linux Lite Forums
Native Netflix coming to Linux - Printable Version

+- Linux Lite Forums (https://www.linuxliteos.com/forums)
+-- Forum: General (https://www.linuxliteos.com/forums/forumdisplay.php?fid=4)
+--- Forum: On Topic (https://www.linuxliteos.com/forums/forumdisplay.php?fid=14)
+--- Thread: Native Netflix coming to Linux (/showthread.php?tid=878)

Pages: 1 2


Re: Native Netflix coming to Linux - anon222 - 10-10-2014

Great news on netflix. Smile

I've noticed this:
lite-software doesn't check for libnss3
This can be fixed like this:
Code:
test_netflix1=(`apt-cache policy google-chrome-stable | grep "Installed:"`)
test_netflix2=(`apt-cache policy libnss3 | grep "Installed:"`)
if [ "${test_netflix1[1]}" != "(none)" ] && [ "${test_netflix2[1]}" != "(none)" ];then
  netflix=("FALSE" "Netflix" "Multimedia" "Installed" "A popular streaming tv and movie service (Installs Chrome, account required)" )
else
  netflix=("FALSE" "Netflix" "Multimedia" "Not Installed" "A popular streaming tv and movie service (Installs Chrome, account required)" )
fi

This is an idea:
In the installer script "netflix"
You can insert the check at the begining ( just after INSTALL_ICON and APPNAME) to test if the the packages google-chrome-stable and libnss3 are installed.
And if they are, to display a message or maybe even a question like:"Netflix is installed. Do you want to open www.netflix.com now?
Code:
...
INSTALL_ICON="/usr/share/icons/zenity-llcc.png"
APPNAME="Netflix"

# Test
test_netflix1=(`apt-cache policy google-chrome-stable | grep "Installed:"`)
test_netflix2=(`apt-cache policy libnss3 | grep "Installed:"`)
if [ "${test_netflix1[1]}" != "(none)" ] && [ "${test_netflix2[1]}" != "(none)" ];then
    zenity --info --title="$APPNAME Installer" --window-icon="${INSTALL_ICON}" --text="Netflix is allready installed."
exit 0
fi
...
Then you can remove this line:
If you already have the Google Chrome Web Browser installed, cancel
this installation now and head over to https://ww.netflix.com/ to start
using Netflix on Linux Lite.

One more idea. This kind of check can be used in all of the install scripts. Smile
And nice work on this line:
Code:
sudo -u '#1000' -H sh -c "google-chrome-stable http://www.netflix.com"
I like it. Now you can add that question back to the scripts: Do you want to start $APPNAME?


Re: Native Netflix coming to Linux - Valtam - 10-10-2014

(10-10-2014, 11:54 AM)misko_2083 link Wrote: One more idea. This kind of check can be used in all of the install scripts. Smile
And nice work on this line:
Code:
sudo -u '#1000' -H sh -c "google-chrome-stable http://www.netflix.com"
I like it. Now you can add that question back to the scripts: Do you want to start $APPNAME?

I am somewhat reluctant to do this with every installer as it relies on the fact that user #1000 is the person currently logged in and running the installer with sudo privs. The Netflix installer will be gone in the next version of LL so this is just a quick fix Smile


Re: Native Netflix coming to Linux - Valtam - 12-19-2015

Some news - http://blogs.adobe.com/primetime/2015/12/netflix-html5-on-firefox/ sounds promising.