LinuxQuestions.org
Review your favorite Linux distribution.
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-03-2004, 02:44 AM   #16
CortanaG4
LQ Newbie
 
Registered: May 2004
Location: Hood River OR
Distribution: Ubuntu, Mac OS X v10.4.x
Posts: 7

Rep: Reputation: 0

I created firefox2.sh with that one line as you requested. It executes, but I don't see that it did anything. Keep in mind that I am somewhat new to linux, and don't really know any scripting. I'm following the instructions, but I'm not sure what I should be looking for when I excecute.
 
Old 05-03-2004, 02:56 AM   #17
hallamigo
Member
 
Registered: Feb 2004
Location: Utah, USA
Distribution: Debian
Posts: 230

Rep: Reputation: 31
Oh, instead of making a file simply run that line from your terminal while a browser is open. It should return a number or two.

$> ps -ef | grep $UID | grep /usr/lib/firefox/firefox-bin | grep -v "grep" | awk '{print $2}'
 
Old 05-03-2004, 03:08 AM   #18
CortanaG4
LQ Newbie
 
Registered: May 2004
Location: Hood River OR
Distribution: Ubuntu, Mac OS X v10.4.x
Posts: 7

Rep: Reputation: 0
Same results. It executes, but I there is no output.

I do thank you for your help, but it is night time and I am tired. Perhaps I will fight with it some more after work tomorrow. I have threads going on other boards including the Mozilla Firefox support forum (no hits on them though). If I get a working solution elsewhere, I'll be sure to post here. Otherwise, I'm still open for suggestions! Thanks again for the help so far.
 
Old 05-03-2004, 03:40 AM   #19
hallamigo
Member
 
Registered: Feb 2004
Location: Utah, USA
Distribution: Debian
Posts: 230

Rep: Reputation: 31
No problem - since it's not returning any results then that line

ps -ef | grep $UID | grep /usr/lib/firefox/firefox-bin | grep -v "grep" | awk '{print $2}'

is why it's not working - it doesn't see the existing PID of your first window so it tries to open the primary window thus resulting in the profile issue. Troubleshoot that line and see if you can get it to see your existing PID. One good way to see the PID among all others is to run:

$> ps faux

This will show you all running processes this way you can see if your 'grep /usr/lib/firefox/firefox-bin' part of the line should really be something else.

Good luck.
 
Old 05-03-2004, 07:08 AM   #20
buldir
Member
 
Registered: Mar 2004
Location: Fairbanks, AK USA
Posts: 135

Rep: Reputation: 15
firefox issues

CortanaG4,
I don't understand why you would want two instances of firefox running. Is there a situation where you do not use/like multiple tabs within a single browser window? There are solutions that allow you to click on a web link in another program, while having a FF session open, in which the new link would simply open in another tab in the existing FF session. Is this your goal? I know you want two FF browsers open but you might want to try the following steps and simply use multiple tabs. Here's what I have set up using Fedora Core 1:

1) Download and install the Tabbrowser extension (http://texturizer.net/firefox/extensions/#tbe). Once installed, go to Tools | Options | Extensions, click on Tabbrowser Extensions and click the options button at the bottom.
I recommend enabling "Use Expert Preferences". Click apply. In the category list to the left, choose "Advanced" and under "General/Window Mode" select "Use multiple browsers only when I open them".

2) The script I use (firefox_url.sh):

######################################################################
# Wrapper for Mozilla Firefox that can be used to start the current
# (or a new) browser with a given URL. This may be used as the
# default browser script in GNOME so that you can click on arbitrary
# URLs and

# There should be a single argument to this script
# containing the URL that we want to load, if there
# is no argument then it simply loads firefox

# FIREFOX should be set to the full path of your
# firefox executable, if firefox is in your path then
# the simplest change is to
#
# FIREFOX=`which firefox`

FIREFOX=/usr/share/firefox/firefox

# Count up the number of running instances of
# firefox to determine whether the program is
# already running

FIREFOX_COUNT=`ps -A | grep -c firefox-bin`

# This variable will be used to store the arguments
# that we are going to pass to firefox

FIREFOX_ARGUMENTS=

# If there are currently no instances of firefox
# running then either load it, or load it with a
# URL to go to

if [[ FIREFOX_COUNT -eq 0 ]]
then
FIREFOX_ARGUMENTS=$1

# Otherwise use the currently running firefox by
# sending it a command to either open a new browser
# window, or to open a new tab containing the desired
# URL

else
if [ -z $1 ]
then
FIREFOX_ARGUMENTS="-remote xfeDoCommand(openBrowser)"
else
FIREFOX_ARGUMENTS="-remote openurl($1,new-tab)"
fi
fi

$FIREFOX $FIREFOX_ARGUMENTS &
#####################################################################

The only thing you have to change, should you decide to use it, is line 17:
FIREFOX=/usr/share/firefox/firefox,
to wherever you installed firefox to (/usr/lib/firefox/firefox). Call the script something and put it somewhere (i.e. your home dir).

3) Put the following into your user.js file located in your home directory as ".phoenix/default/something.slt"

// Stop reusing active windows:
user_pref("advanced.system.supportDDEExec", false);

If user.js isn't there, make it, and put the stuff above into it. This allows links to open in a new tab rather than one that might already be open.

4) Put the path to FF (not your script) into your Preferred Applications settings. This can be found by going to the main menu, Gnome icon (Red Hat) | Preferences | Preferred Applications and selecting custom for your web browser (see http://www.linuxforum.com/gnome/goscustdoc-2.html). In this case enter /usr/lib/firefox/firefox.

You should be good to go after this. If this doesn't float your boat, then try putting the path to your script (i.e. /home/blah/firefox_url.sh) as the command for your custom web browser in your Preferred Applications settings (#4 above) and try either:

/home/blah/firefox_url.sh "%s", or
/usr/lib/firefox/firefox "%s"

and see what happens. If you want to know how to get a mail-to link to open up in Thunderbird, or get FF to open when clicking on a link in Thunderbird, let me know. I hope this helps.
 
Old 06-05-2004, 06:59 PM   #21
dmdm
LQ Newbie
 
Registered: May 2004
Posts: 11

Rep: Reputation: 0
Okay, here's the scoop

First, download the RPM from the fedora extras repository.

Next, if you haven't already, you'll have to associate rpms with the program 'rpm' (a strange oversight from the team, i think.) Anyway, just double-click to open the rpm, and when it asks you what you want to associate rpms with tell it "rpm -Uvh".

Then just double-click the rpm to install.

Then follow those keen directions in the previous post about making it your preferred browser.

Cheers!

Last edited by dmdm; 06-05-2004 at 08:11 PM.
 
Old 06-19-2004, 01:27 PM   #22
ka9qlq
Member
 
Registered: Feb 2004
Location: Columbus, IN USA
Distribution: Mepis 3.4 rc1
Posts: 119

Rep: Reputation: 26
Question

Sorry for butting in but I just got firefox 0.9 and have been using firebird 0.7. When I launch firefox it doesn't seem to use ./phoenix, non of my bookmarks show, I don't have access to the extensions in ./phoenix or the themes. Does 0.9 not use ./phoenix? If not where?

Also when I installed it in /usr/local/firefox it asked if I wanted to import my firebird stuff I said yes but I don't think it did, anyway I deleted that dir and reinstalled in my home dir but now it doesn't offer to import anything. I don't want to mess up my firebird installing firefox extensions.
Thanks
Alvin
http://ka9qlq.tripod.com/
 
  


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
Question about Firefox mebrelith Linux - Software 3 02-10-2005 12:26 AM
A question about firefox 3887182 Slackware 5 02-05-2005 11:09 PM
Firefox 0.9 install question? carlosinfl Linux - Software 3 07-16-2004 08:19 PM
firefox question SciYro Linux - General 3 04-13-2004 01:59 PM
Big Newb question... FireFox install ickselglic Linux - Newbie 15 02-17-2004 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:29 AM.

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