Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Applications > Problem launching firefox with script

Forgot Password?
 Linux Applications   I cant get "X" app to work... also discussion about linux programs.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 02-19-2004   #1 (permalink)
Linux User
 
zba78's Avatar
 
Join Date: Feb 2004
Location: Birmingham, England
Posts: 335
Problem launching firefox with script

I’m using the following to launch Firefox (in SuSE Linux 8.2):

Quote:
#!/bin/bash

REALPROGRAM=/opt/firefox/firefoxOLD

if [ -f ~/.mozillarunning ]; then
if [ ! -z $1 ]; then
$REALPROGRAM -remote "openURL($1 , new-tab)"
else
$REALPROGRAM -remote "openURL(about:blank, new-tab)"
fi
else
touch ~/.mozillarunning
$REALPROGRAM $1
rm -f ~/.mozillarunning
fi

Where I’ve renamed the original firefox script to firefoxOLD.

For those who aren’t aware, this script checks to see if Firefox is running, if it is then it simply opens a new-tab in the already running window, otherwise it opens a whole new window altogether (instead of the annoying ‘manage profile’ window showing up).

This worked perfectly up till a few days ago. Then, while firefox was open my system froze (not because of firefox). Since rebooting every time I try to run the script I get the error message ‘No open window found’ and nothing loads.

If I run Firefox from the original script (firefoxOLD) and then run the above firefox script it opens a new tab perfectly fine, bit the new script will no longer launch firefox in the first place.

It seems that the new script thinks that firefox is already running (when it is not) and tries to open a new tab all the time.
__________________
Ubuntu Jaunty :: Arch Linux (current) :: Acer Aspire 1692WMLi
zba78 is offline  


Reply With Quote
Old 02-20-2004   #2 (permalink)
Linux User
 
zba78's Avatar
 
Join Date: Feb 2004
Location: Birmingham, England
Posts: 335
I figured it out. There was a hidden file (.mozillarunning) in my home directory that I had to delete
__________________
Ubuntu Jaunty :: Arch Linux (current) :: Acer Aspire 1692WMLi
zba78 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:11 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2