pinstall.sh 1.0 KB

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. if [ ! "`pwd`" = "/" ];then
  3. echo "Configuring Chromium web browser..."
  4. echo '#!/bin/sh' > ./usr/local/bin/defaultbrowser
  5. echo 'exec chromium-browser "$@"' >> ./usr/local/bin/defaultbrowser
  6. chmod 755 ./usr/local/bin/defaultbrowser
  7. #if nothing suitable installed, do this...
  8. #note, helpsurfer not suitable, can't display my doc/index.html
  9. HTMLVIEWERFLAG='no'
  10. [ "`find ./bin ./usr/bin -maxdepth 1 -type f -name netsurf`" != "" ] && HTMLVIEWERFLAG='yes'
  11. if [ "$HTMLVIEWERFLAG" = "no" ];then
  12. echo '#!/bin/sh' > ./usr/local/bin/defaulthtmlviewer
  13. echo 'exec chromium-browser "$@"' >> ./usr/local/bin/defaulthtmlviewer
  14. chmod 755 ./usr/local/bin/defaulthtmlviewer
  15. fi
  16. fi
  17. #120621 Debian Squeeze: chromium is displaying in both the Network and Internet menu categories...
  18. #note: this should really be fixed in the woof script 2createpackages.
  19. if [ -f ./usr/share/applications/chromium-browser.desktop ];then
  20. cbPTN="s%^Categories=.*%Categories=WebBrowser%"
  21. sed -i -e "$cbPTN" ./usr/share/applications/chromium-browser.desktop
  22. fi