mozedit 586 B

12345678910111213141516
  1. #!/bin/sh
  2. #Puppy does not want more than one instance of Moz running.
  3. #120225 does not seem to be a problem anymore, can run Composer when browser already running.
  4. COMTAIL="$@"
  5. #ps | grep --extended-regexp 'mozilla\-bin|iceape\-bin' > /dev/null 2>&1
  6. #if [ $? -eq 0 ];then #=0 if found.
  7. # xmessage "Please open Composer from Window menu of currently running Mozilla"
  8. #else
  9. #exec /usr/lib/mozilla/mozilla-bin -edit $@
  10. COMTAIL="`echo -n "$COMTAIL" | sed -e 's/ /%20/g'`"
  11. [ "`echo "$COMTAIL" | grep "^file://"`" = "" ] && COMTAIL="file://${COMTAIL}"
  12. exec seamonkey -edit $COMTAIL
  13. #fi