LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-26-2003, 04:15 PM   #16
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30

*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
 
Old 07-20-2003, 05:38 PM   #17
nirva
Member
 
Registered: Mar 2003
Location: RI
Distribution: Slack 9.1
Posts: 35

Rep: Reputation: 15
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

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)

Last edited by nirva; 07-20-2003 at 06:09 PM.
 
Old 07-20-2003, 09:55 PM   #18
eltongeoff
Member
 
Registered: Mar 2003
Posts: 76

Rep: Reputation: 15
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
 
Old 07-21-2003, 04:18 AM   #19
nirva
Member
 
Registered: Mar 2003
Location: RI
Distribution: Slack 9.1
Posts: 35

Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
flash problem in mozilla can't find /usr/lib/mozilla ejbest Linux - Software 6 01-12-2010 10:48 AM
Mozilla and Mozilla Screen Problem satimis *BSD 12 04-11-2004 06:05 PM
Segfaults in Mozilla, Mozilla Firebird, and Mozilla Thunderbird Ninja Cow Linux - Software 2 02-02-2004 02:33 AM
Java for Mozilla and Mozilla-firebird Problem, Please help londonboi Linux - General 5 01-08-2004 06:07 AM
Problem upgrading mozilla-1.0.1 to mozilla 1.3.1 k0ljat Linux - Software 8 07-04-2003 02:18 PM


All times are GMT -5. The time now is 10:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration