LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-30-2004, 05:45 AM   #1
lasindi
Member
 
Registered: Apr 2004
Distribution: Slackware, Ubuntu
Posts: 101

Rep: Reputation: 15
Firefox -remote option generates "No running window found" error


After having been frustrated by not being able to double click on an HTML file in Konqueror and open it in a new Firefox window when Firefox was already running, I googled for a solution and found this . I changed the Firefox directory and everything necessary for the script to choose the correct command to execute. However, it now produces this error:

Error: No running window found

I know that the problem isn't with the script, because when I try executing

/usr/local/firefox/firefox -remote "openUrl('google.com', new-tab)"

(the command that the script should and does execute) I get the same error. Why does this error happen when I have an open Firefox window? Thanks.

lasindi
 
Old 08-05-2004, 01:48 AM   #2
guest
Member
 
Registered: May 2003
Distribution: CentOS 5 64 bit
Posts: 255

Rep: Reputation: 30
Yep I noticed this too.. I found your post here doing a search for the same problem.. I've discovered that the older -remote command doesn't work anymore ( busted? ). However this seems to work instead...

firefox -a firefox -remote "openurl(www.google.com,new-tab)"

Go figure...

Cheers
Griffon (MCB) Hinterlands

PS. Here is a shell script that works with later versions of firefox under FC2
put it in /usr/bin

Code:
#!/bin/sh
 
# firefox
# A script to make firefox do what its supposed to do by default and doesn't
#
 
FOX_HOME=/usr/share/firefox
 
#Is firefox running?
$FOX_HOME/firefox -a firefox -remote 'ping()'
 
if [ $? -eq 0 ]; then   # Yep.. Open a new tab / window
 
#$FOX_HOME/firefox -a firefox -remote "openurl($1,new-window)"&
$FOX_HOME/firefox -a firefox -remote "openurl($1,new-tab)"&
 
else # Nope.. Open new firefox
 
$FOX_HOME/firefox $1 &
 
fi

Last edited by guest; 08-05-2004 at 02:34 AM.
 
Old 08-05-2004, 02:45 AM   #3
lasindi
Member
 
Registered: Apr 2004
Distribution: Slackware, Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 15
Cool, works great! I'm just curious as to how you found this out. I did what I felt was a pretty thorough search of the Internet and couldn't find anything. It just seemed no one had this problem, and after a few days, I thought no one would answer my post. Thanks!

lasindi
 
Old 08-06-2004, 12:10 AM   #4
guest
Member
 
Registered: May 2003
Distribution: CentOS 5 64 bit
Posts: 255

Rep: Reputation: 30
Well a little bit of looking around came up trumps.. though http://www.mozilla.org/unix/remote.html did help me get the command right.

The firefox command is actually a shell script come about from the early days of mozilla and it actually calls a command called mozilla-xremote-client after doing a bunch of arguably pointless stuff do to with profiles. So I just passed these arguments to this script based on the the usage for mozilla-xremote-client. Not much to it really..

Griffon (MCB) Hinterlands
 
Old 09-17-2004, 06:52 AM   #5
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 348

Rep: Reputation: 39
Talking Cool..

Cool.. this helped me as well for the kNewsticker to open news items in my current firefox session, on a new tab...
But I have a bugger, called 'launch feedback' that keeps bouncing for 30 seconds while the page is showing in the browser..

How to replicate:
Set the File associations to open the above script for the type 'text/html' (parameter %u for url).
on the 'Embedded' tab of the association, select 'Open in new Window'.

- From kNewsTicker, just klick a link.
- From konqueror, find a locally stored html file and doubleclick it. It will open a new Firefox instance/tab, but the launch feedback will remain (provided you have this option enabled).

How can I tell the feedback agent it can stop ? It must be something other than the script ending with a return value of 0.

Any help would be appreciated.

FYI, I'm using FC2 with Firefox 1.0PR. Not that it really matters, but hey.. you never know .
 
Old 09-22-2004, 05:41 AM   #6
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 348

Rep: Reputation: 39
Nobody?
 
Old 09-23-2004, 10:25 PM   #7
lasindi
Member
 
Registered: Apr 2004
Distribution: Slackware, Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 15
I'm not sure how to tell it to stop in the middle, but you can set preferences to turn it off completely or shorten how long it bounces (or whatever it does in your case). Go to KDE's Control Center and go to "Appearance & Themes" and then "Launch Feedback." You can mess with settings in there, if you want.

lasindi
 
  


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 6 03-21-2013 10:35 AM
CUPS error: option "-o outputorder=reverse" ignored! umk Debian 1 06-17-2005 03:10 AM
error running "make" and "arkollonrc"... Toro Linux - Software 1 04-19-2004 12:24 AM
anging "Protocol" option to "IMPS/2" in XF86Config-4 causes problems zstingx Linux - General 2 10-27-2003 09:47 AM
error "Kernel panic: No init found. Try passing init= option Anauj0101 Linux - Newbie 3 05-06-2003 10:18 PM


All times are GMT -5. The time now is 04:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration