Bug 45610 - all mozilla spells do not support thread spawning
Summary: all mozilla spells do not support thread spawning
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-23 03:10 UTC by Nick Jennings
Modified: 2002-11-24 00:28 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Jennings 2002-11-23 03:10:01 UTC
  >Submitter-Id:  current-users
  >Originator:    Nick Jennings
  >Organization:
  >Confidential:  no
  >Synopsis:      all mozilla spells do not support thread spawning
  >Severity:      non-critical
  >Priority:      low
  >Category:      ports
  >Class:         sw-bug
  >Release:       FreeBSD 4.7-RELEASE i386
  >Environment:
 System: FreeBSD grenzik.us.mvd 4.7-RELEASE FreeBSD 4.7-RELEASE #6: Thu 
 Oct 24 12:03:46 PDT 2002 nkj@grenzik.us.mvd:/usr/obj/usr/src/sys/GRENZIK 
 i386
 
 
 
  >Description:
          When mozilla is run, and a mozilla process is already running,
          mozilla will require that the user select a new profile before
          loading. This is because of the lack of a mozilla wrapper which
          will detect if mozilla is already running, if so it will launch
          the call in a new thread of the same instance.
 
 
  >How-To-Repeat:
          * Run mozilla
          * In gnome-terminal or any application that lets you right click
            on a URL and "Open in Browser" etc.
          * When trying to open up link instead you get a message about
            the profile already in use.
 
 
  >Fix:
          Heres a mozilla wrapper I wrote and tested. Works good. This
          should replace the mozilla shell script that currently exists
          (which just cd's to the mozilla dir and run the mozilla binary).
          It should be called 'mozilla' and be on the path.
 
          Any of the mozilla ports which use it must be sure to set the
          initial shell variable correctly for thier specific port. I
          am using the mozilla-devel port, so this is setup for that port.
 
 
 #!/bin/sh
 
 MOZILLA_DIR="/usr/X11R6/lib/mozilla-devel"
 MOZILLA_EXEC="mozilla"
 LOCATION='new-tab'
 
 cd $MOZILLA_DIR                                     || exit 1
 
 # catch calls for mozilla mail
 if [ "$1" = "-mail" ]; then
    REMOTE_COMMAND="xfeDoCommand (openInbox)"
 else
    REMOTE_COMMAND="openURL($*, $LOCATION)"
 fi
 
 # process found
 ./$MOZILLA_EXEC -remote "ping()"                    &&
 ./$MOZILLA_EXEC -remote "$REMOTE_COMMAND"           && exit 0
 
 # no existing process
 ./$MOZILLA_EXEC $* &
Comment 1 Giorgos Keramidas freebsd_committer freebsd_triage 2002-11-23 11:34:25 UTC
Responsible Changed
From-To: gnats-admin->freebsd-ports

Ports stuff.
Comment 2 Patrick Li freebsd_committer freebsd_triage 2002-11-23 19:10:38 UTC
Responsible Changed
From-To: freebsd-ports->gnome

Over to maintainers
Comment 3 Joe Marcus Clarke freebsd_committer freebsd_triage 2002-11-24 00:28:10 UTC
State Changed
From-To: open->closed

Committed with slight modification, thanks!