Jump to content

annoying mozilla issue


aze
 Share

Recommended Posts

it won't work on gaim

this mozilla profile issue really sux!

I discovered that every time I start mozilla it creates a zero byte file called <B>lock</B> and then if that file exists it ask for a new profile. Then If I delete the file it won't ask for a new profile and starts a new instance normally.

So how do i create a batch file to delete that file and start mozilla?

 

thanks

Link to comment
Share on other sites

[root@ml root]# which mozilla
/usr/bin/mozilla
[root@ml root]# file /usr/bin/mozilla
/usr/bin/mozilla: Bourne shell script text executable
[root@ml root]# vi /usr/bin/mozilla

function check_running() {
   $MOZ_CLIENT_PROGRAM 'ping()' 2>/dev/null >/dev/null
   RETURN_VAL=$?
   if [ "$RETURN_VAL" -eq "2" ]; then
     echo 0
     return 0
   else
     echo 1
     return 1
   fi
}

# check to see if there's an already running instance or not
ALREADY_RUNNING=`check_running`

 

bk it up and try and hack it. Others have for other purposes. In fact, now that I think of it I think someone has posted the hack for your prob (The Yin Yeti?, Steve Scrimpshire?) I'm not sure. I use galeon. You may also find that lock file being set in the shell script as well.

Edited by bvc
Link to comment
Share on other sites

In gaim, go to your preferences and then click on Browser. Then over to the right, select 'Manual'. In the textarea box, put

 

mozilla -remote "openURL (%s, new-window)"

 

Click Close.

 

That should do it. If you would rather it just open a new tab, change new-window to, guess what, new-tab.

 

More info here:

http://www.mozilla.org/unix/remote.html

 

BTW, the hack was for gnome apps like Evolution and it wasn't written by me. Use gnome-control-center and click on advanced and then preferred apps and find the one for browser and set a manual launcher with above command. Some else did post a script to launch a new window of mozilla, but don't remember who or where to find it.

Edited by Steve Scrimpshire
Link to comment
Share on other sites

I use this script:

 

#!/bin/bash
MFDIR=/opt/MozillaFirebird
MFBIN=MozillaFirebird-bin
MOZSTAT=`ps -C $MFBIN|grep -v PID|wc -l`
if [ 0 -eq $MOZSTAT ]
then	
  $MFDIR/MozillaFirebird $*  &
else
  case $# in
0)
   $MFDIR/MozillaFirebird -remote xfeDoCommand\ \(openBrowser\) &
;;
1) 
   $MFDIR/MozillaFirebird -remote openurl\($*,new\-window\) 
;;
*)
   echo Usage: $0 "[url]"
;;
  esac
fi

 

I posted it on a MozillaFirebird forum a few days ago. Hope this helps?

Link to comment
Share on other sites

This didn't work for you?

 In gaim, go to your preferences and then click on Browser. Then over to the right, select 'Manual'. In the textarea box, put

mozilla -remote "openURL (%s, new-window)"

Click Close.

 

There is a space between mozilla and -remote. It works fine for me. Try typing that in a console. What errors do you get?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...