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.
|
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 ) |
Fingers crossed and with 0.9 which is due very soon should cover a few silly issues including the profile manager.
|
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 |
woot. firefox -remote "openurl(website)" did the trick (ctrl-N doesn't work when only the download window is open). Thx Håkan
|
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.. |
alright so a simple kludge is
make a script file firefox.sh (or whatever) with just Code:
rm $HOME/.phoenix/default/*/lock |
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 :) |
Thanks for the script, Target! Works like a charm!
|
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.
|
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?
|
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
|
Quote:
|
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 |
Quote:
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. |