LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Native Netflix coming to Linux
#11
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?
Reply
#12
(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
Reply
#13
Some news - http://blogs.adobe.com/primetime/2015/12...n-firefox/ sounds promising.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)