basichtmlviewer 894 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. #120225 renamed this script from basichtmlview to basichtmlviewer. added surfer.
  3. #120512 have renamed executable in helpsurfer pkg (latest pet).
  4. if [ -d /usr/local/PuppyBrowser ];then
  5. export MOZ_DISABLE_PANGO=1
  6. #grab these from SeaMonkey...
  7. [ ! -f /root/.PuppyBrowser/default/cert8.db ] && /usr/local/PuppyBrowser/find_certs &
  8. cd /usr/local/PuppyBrowser
  9. exec ./PuppyBrowser "$@" -title="Puppy HTML Viewer" -w=798 -h=580 -profile=helpviewer
  10. fi
  11. #120512 have renamed executable in helpsurfer pkg (latest pet)...
  12. if [ -f /usr/bin/helpsurfer ];then #package helpsurfer
  13. COMMANDPARAM="`echo -n "$@" | sed -e 's%file://%%'`" #surfer cannot handle this.
  14. exec helpsurfer "$COMMANDPARAM"
  15. fi
  16. if [ -f /usr/bin/surfer ];then #package helpsurfer
  17. COMMANDPARAM="`echo -n "$@" | sed -e 's%file://%%'`" #surfer cannot handle this.
  18. exec surfer "$COMMANDPARAM"
  19. fi
  20. exec defaulthtmlviewer "$@"