LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-06-2004, 11:59 AM   #1
curmudgeon42
Member
 
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):

Code:
#! /bin/bash
#
if pgrep -u `id -un` "firefox-bin" > /dev/null ; then
    if [ -z "$1" ]; then
        mozilla-firefox -remote "xfeDoCommand (openBrowser)" &
    else
        mozilla-firefox -remote "openURL($1, new-window)" &
    fi
else
    mozilla-firefox $1
fi
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:
http://www.coffeegeek.net/firefox_launch.png

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
spuzzzzzzz
Member
 
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
curmudgeon42
Member
 
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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:09 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
Open Source Consulting | Domain Registration