[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mutt, urlview und mozilla



Hallo Michelle!

> ich habe mit 'mutt', 'urlview' und 'mozilla' ein problem...
> 
> Ich habe eine Backport von "urlview" installiert und jedesmal wenn ich
> in 'mutt' einen URL öffnen will, bekomme ich ein neues mozillafenster
> gestartet. 
> 
> Mit der Version unter WOODY wurde immer ein neues TAB geöffnet.
> 
> Ich habe zwar "mozilla-tabextensions" so konfiguriert, das er nur ein
> mozillafenster zuläßt, aber anscheinend funktioniert das nicht mit
> 'urlview'.
> 
> Kennt jemand eine Lösung ?
> 
> Ach ja, wenn ich in 'mutt' auf der Console bin, kann ich einwandfrei
> ein neues TAB in 'mozilla' unter X öffnen.
Versuche es damit

in /etc/urlview/url_hander.sh
--snip--
#http_prgs="/usr/bin/x-www-browser:PW /usr/bin/www-browser:XT /usr/bin/galeon:PW /usr/bin/konqueror:PW /usr/bin/mozilla:PW /usr/bin/lynx:XT /usr/bin/w3m:XT /usr/bin/links:XT /usr/bin/X11/netscape:PW"
http_prgs="/home/michael/bin/phoenix2.sh:PW /usr/bin/x-www-browser:PW /usr/bin/www-browser:XT /usr/bin/galeon:PW /usr/bin/konqueror:PW /usr/bin/mozilla:PW /usr/bin/lynx:XT /usr/bin/w3m:XT /usr/bin/links:XT /usr/bin/X11/netscape:PW"
--snip--

und hier mein phoenix2.sh-Skript
--snip--
# firefox.sh
# Works for Firefox 0.9
# Written by Robert Mullenix, June 2004

PROFILEPATH=`cat ~/.mozilla/firefox/profiles.ini | grep Path | cut -f 2 -d =`
HOMEPAGE=`cat ~/.mozilla/firefox/$PROFILEPATH/prefs.js | grep browser.startup.homepage\" | cut -f  4 -d \"`
#MOZILLA="/usr/share/firefox/firefox"
MOZILLA="/usr/bin/firefox"

MODE=$2
if [[ $MODE == "" || ( $MODE != "new-tab" && $MODE != "new-window" ) ]]; then
	MODE="new-tab"
fi
echo $MODE

# Find out Firefox is open already
if $MOZILLA -P Michael -a firefox -remote "ping()" 2>/dev/null; then
  if [ -z $1 ];   then
		# instance already opened, open new tab
    $MOZILLA -P Michael -a firefox -remote "openURL(,$MODE)" &
  else
		# instance already opened, launch URL $1 in new tab
    $MOZILLA -P Michael -a firefox -remote "openURL($1,$MODE)" &
  fi
else if [ -z $1 ];   then
		#  no URL present, just open firefox
    $MOZILLA -P Michael &
  else
		#  no instances exist, open a new window with URL $1
    $MOZILLA -P Michael $1 & 
  fi
fi
exit 1
CU        
--snip--
         
  Michael  
          
--                                                       
           Michael Ott, e-mail: michael@zolnott.de, www.zolnott.de           
I am registered as user #275453 with the Linux Counter, http://counter.li.org.



Reply to: