Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-06-2004, 11:59 AM   #1
Registered: May 2004
Posts: 86

Rep: Reputation: 15
firefox launch script

I am using the following script to launch firefox (to avoid the well-known problem it has in launching two instances normally):

#! /bin/bash
if pgrep -u `id -un` "firefox-bin" > /dev/null ; then
    if [ -z "$1" ]; then
        mozilla-firefox -remote "xfeDoCommand (openBrowser)" &
        mozilla-firefox -remote "openURL($1, new-window)" &
    mozilla-firefox $1
this seems to work just fine if i launch the script from the cmd line. however, when i put the script into a KDE Menu item and click it, the second time you click (where the script uses the -remote switch), a 3rd toolbar item is created that says Starting Mozilla Firefox with a spinning hourglass. The 2nd window *does* open correctly, but this weird toolbar item stays there for 15 seconds or so. If I click the menu item a 3rd time, a third firefox window is created, along with a second weird spinning hourglass toolbar item.

The weird item is created only when launching the script from my KDE menu item, not if i run the script from a term window.

If my descriptions are bad, here is a screenshot of the weird item:

I have all of the behavior I need, I can create a new Firefox window by clicking on a link in my menu. However, this weird toolbar item is really bugging me. What is causing it? How I can get rid of it?

Thanks for the help,

~ Justin
Old 06-06-2004, 06:26 PM   #2
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Rep: Reputation: 30
I had that problem too, but I never really figured out what caused it. You can stop the hourglasses, though, by removing inter-process communication for your menu item. Or you can when you're using a desktop shortcut, anyway - its in the properties dialogue somewhere.
Old 06-06-2004, 08:20 PM   #3
Registered: May 2004
Posts: 86

Original Poster
Rep: Reputation: 15
in the properties of the KDE menu item that was running the script, under advanced options, i unchecked "Enable Launch Feedback". now the hourglass thing doesn't appear. this seems to make the script work appropriately except the new window appears in the background instead of the foreground. if anyone knows if i can change that, it would be great.

i now notice another problem though; haven't yet tested if it is related to that change. after opening Thunderbird, anytime i try to open a second window using the script (the first works fine), i get an error saying "The file /content/navigator.xul cannot be found. Please check the location and try again." anyone know what this is all about?

~ Justin


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
Firefox launch problem onthos Linux - Software 2 10-23-2005 08:32 AM
Launch an application in firefox - How? TSynergy Linux - Newbie 5 02-27-2005 11:02 AM
Have Firefox Launch X on startup Johnathan4 Linux - Software 1 02-12-2005 10:02 AM
installed firefox, dont know how to launch it ! guy24x Mandriva 13 01-30-2005 05:07 AM
external launch of firefox... Borelian Linux - Software 1 05-09-2004 05:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:55 AM.

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