LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mozilla problem (https://www.linuxquestions.org/questions/linux-newbie-8/mozilla-problem-43405/)

oot 05-26-2003 03:15 PM

*Hits self over head with Linux manual* Looks like I should have tested my original answer better before posting. If you do as I suggested, it will open new mozilla windows when mozilla is running but will no longer be able to start mozilla.

Below is a script (yes, this time I tested it, but still no guarantees) that I have placed in /usr/local/bin/mozilla that works for me. You may need to edit it to tell it where mozilla is on your system.

Code:

#!/bin/bash
# Run Mozilla, but don't put up profile manager for new windows.
 
MOZILLA=/usr/local/mozilla/mozilla
MOZILLA_OPTIONS=$* #Whatever was passed to the script will be passed to Mozilla
 
if ps -e | grep mozilla-bin > /dev/null
then
        echo "Mozilla is already running, opening a new window."
        MOZILLA_OPTIONS="$MOZILLA_OPTIONS -remote \"xfeDoCommand \(openBrowser\)\""
else
        echo "Mozilla is not running, starting it now."
fi
 
$MOZILLA $MOZILLA_OPTIONS


nirva 07-20-2003 04:38 PM

Quote:

Originally posted by oot
Try setting your shortcuts to Mozilla to run
mozilla -remote "xfeDoCommand (openBrowser)"

thank you oot, solved my problem in an easy way :D

EDIT: although putting that in my shortcuts allows me to open another browser without problems, if no browsers are open, it doesn't work

what do I do with that script in order to make it work? (yes I am a newbie, but I'm trying to learn, heh)

eltongeoff 07-20-2003 08:55 PM

hey great job guys, this thing has been driving me nuts for a while now, never even knew about the lock file. i ended up doing somein similar to inveigh. i wrote a script file that first removes the lock file, then start firebird. than i put a symbolic link in usr/bin call mozfirebird. thanks for the info guys

nirva 07-21-2003 03:18 AM

Well I figured out how to make the script work and it works great, thanks again. Now a minor problem I've come across after getting the script to work: if you click on a link in an email expecting a new browser to open and for it connect to that address, it doesn't, the home page loads instead.

Any ideas/suggestions?


All times are GMT -5. The time now is 07:32 AM.