Mozilla Profile Sharing

User Help for Seamonkey and Mozilla Suite
Post Reply
dwoodral
Posts: 1
Joined: December 9th, 2003, 12:09 pm

Mozilla Profile Sharing

Post by dwoodral »

I've just installed Mozilla version 1.5 and encountered the following problem. Mozilla utilizes a profile manager that is invoked each time the browser is opened which works fine for the first session. However when I open a second instance of Mozilla, the profile mananger wants me to select or create a new profile (same user). Browsers spawned from the initial session don't have this problem. I would like to invoke multiple session of Mozilla and use the same profile, how do I enable profile sharing between multiple Mozilla sessions.

Thanks
Guest
Guest

Post by Guest »

I've never encountered this on the Windows builds, so I assume you're running Mozilla on another OS? If you're running on a Unix variant, you can create a shell script wrapper for Mozilla that will check if a Mozilla process is already running, and if so spawn a new window rather than a new process. I assume this what you're asking for:

A simple shell script that does this for Navigator and Mail windows:

--------- Begin script file --------------
#!/bin/bash
scriptname="`basename $0`"
mail=0


# Check for correct number of args
if [ $# -gt 1 ]; then

echo "Usage: $scriptname [-mail]"
echo ""
exit 0
fi

mozilla -remote 'ping()'

if [ "$?" -eq "0" ] ; then

# Mozilla is already running, so open a new instance in
# the existing process.

if [ $mail -eq 0 ] ; then

# Open Navigator.
# One way to do it...
# exec mozilla -remote 'xfeDoCommand(openBrowser)'
#

# Or just do this...
exec mozilla -remote 'openURL(about:blank,new-window)'

else
# Open Mail
exec mozilla -remote 'xfeDoCommand(openInbox)'
fi

else

# Mozilla is not running, so start it.

if [ $mail -eq 0 ] ; then
exec mozilla
else
exec mozilla -mail
fi


------------End script file -------------

Unfortunately it looks like indentation gets wiped out by the formatting of the form submission, so the readability of
the above script is less than idea. But the script has been working well for me.
Guest
Guest

Post by Guest »

I'm running Linux (Redhat 8). Thanks for the advice I'll give it a try.
Post Reply