LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Firefox and that damn profile manager (https://www.linuxquestions.org/questions/linux-software-2/firefox-and-that-damn-profile-manager-174615/)

tfdml37 04-26-2004 02:47 AM

Firefox and that damn profile manager
 
Anyone know how to get rid of that damn pesky profile manager whenever I run firefox when another instance of firefox is running? I know with mozilla you can run it with %U to get rid of its profile manager, but this doesn't work with firefox. I keep getting stuck with the just the download window left up on a long download and no way to open firefox with my profile.

Technoslave 04-26-2004 03:35 AM

rm $HOME/.mozilla/default/*/lock

The few times that hits me, I usually do that, and I'm good to go...why the developers aren't looking for an instance already running and using that, I don't know...but it's dumb.

( .mozilla/.firefox, can't remember which )

Schrambo 04-26-2004 03:52 AM

Fingers crossed and with 0.9 which is due very soon should cover a few silly issues including the profile manager.

hw-tph 04-26-2004 04:10 AM

The profile manager is an excellent feature IMHO (if you want a new window just use Ctrl+N or -remote openURL("bleh")), and if you keep up with the nightly builds you will see that even the most recent Mozilla 1.8-based ones have the profile manager and it works just like we're used to.


Håkan

tfdml37 04-26-2004 04:37 AM

woot. firefox -remote "openurl(website)" did the trick (ctrl-N doesn't work when only the download window is open). Thx Håkan

tfdml37 04-26-2004 04:43 AM

aww damn.. If I stick that into my firefox icon, it will only work after I have an instance running. It wont launch firefox itself. But at least its a start..

hrm.. rm $HOME/.phoenix/default/*/lock makes it work like it's supposed to... hrm..

tfdml37 04-26-2004 06:27 AM

alright so a simple kludge is

make a script file firefox.sh (or whatever) with just
Code:

rm $HOME/.phoenix/default/*/lock
firefox

in it, make it executable, then run that in the launcher icon... weeee works good. Thx Technoslave!

[NL]_Target 04-26-2004 09:30 AM

I allways use this perl script (credit goes to the creator of it, im not sure who it is but i got it from the web)

<code>
#!/usr/bin/perl
$app = "firefox";
$location = "/opt/mozilla-firefox/bin";
@lines = split (/\n/, `ps -e | grep $app` );

print $ARGV[0];
if( !$ARGV[0] )
{
$ARGV[0] = "www.google.nl";
}
else
{
$ARGV[0]=$ARGV[0]
}

$count = 0;
foreach $line( @lines )
{
if( $line !~ /grep/ && $line !~ /$app\.pl/ ) { $count ++; }
}

print $count;

if( !$count )
{
system( "$location/$app $ARGV[0]" );
}
else {
system( "$location/$app -remote \"openurl( $ARGV[0], new-window )\"" );
}
</code>

Just put that in /usr/bin and name it firefox.pl, change the directories at the top to match your instalation. chmod +x the firefox.pl, and then change your link to firefox.pl, off ya go :)

r_jensen11 06-14-2004 01:37 PM

Thanks for the script, Target! Works like a charm!

Andrew Benton 06-14-2004 02:22 PM

There's a better firefox script http://bugzilla.mozilla.org/attachme...44&action=view attached to comment #79 in the bug http://bugzilla.mozilla.org/show_bug.cgi?id=177996 It fixes this bug for me.

webazoid 07-11-2004 07:55 PM

when i enter: rm $HOME/.mozilla/default/*/lock into a terminal window, where is the .firefox file located? it wasn't in my home directory. how do i make it excecutable, or do the script thing?

TravisOSF 07-11-2004 08:03 PM

I know that if I install it from URPMI from mandrake, i don't have to worry about the profile manager. try that if you have a package manager with your distro

Andrew Benton 07-12-2004 04:17 AM

Quote:

Originally posted by webazoid
when i enter: rm $HOME/.mozilla/default/*/lock into a terminal window, where is the .firefox file located? it wasn't in my home directory. how do i make it excecutable, or do the script thing?
The script has been checked in. It is in the current testing builds http://ftp.mozilla.org/pub/mozilla.o...tk2+xft.tar.gz

BluePyre 07-12-2004 04:34 AM

webazoid,
There is no .firefox directory... Not since last time I checked.
Firefox inherits some of your mozilla preferences and plugins, so i'm guessing thats how this script works. Here's an example of what you could do to create this script from scratch. It assumes that the firefox program is in /home/paul/firefox:
Code:

echo 'rm $HOME/.phoenix/default/*/lock' > startfirefox
echo '/home/paul/firefox' >> startfirefox
chmod a+x startfirefox
./startfirefox

So from now on, whenever you want to start firefox you just run ./startfirefox from the terminal, or create a shortcut to that script

raoaksha 07-22-2004 09:37 AM

Quote:

Originally posted by tfdml37
alright so a simple kludge is

make a script file firefox.sh (or whatever) with just
Code:

rm $HOME/.phoenix/default/*/lock
firefox

in it, make it executable, then run that in the launcher icon... weeee works good. Thx Technoslave!

Thx a lot. the profile manager was buggin the hell out of me.
anyways are there any more issues involved since the lock file is deleted now. firefox is running in multiuser mode.. so what other purposes was the lock file being used for??


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