Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80771 - Xfce xfhelp4 doesn't start firefox or mozilla (mozilla-launcher problem?)
Summary: Xfce xfhelp4 doesn't start firefox or mozilla (mozilla-launcher problem?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 84091 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-04 12:39 UTC by Ian Abbott
Modified: 2005-03-16 09:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Abbott 2005-02-04 12:39:19 UTC
I think this bug mostly relates to the mozilla-launcher script.

I have xfce-base/xfce-4.2.0 emerged and also have the firefox, mozilla, epiphany and konqueror browsers emerged.  I do not have the BROWSER environment variable set.

When I close all firefox windows and run xfhelp4 (or click the help icon on the xfce desktop), the Xfce manual pages are not displayed.  If I run firefox first, the Xfce manual pages are displayed in a new window, but firefox's profile manager is also opened.

When I close all mozilla windows and run BROWSER=mozilla xfhelp4, the Xfce manual pages are not displayed.  If I run mozilla first, the manual pages are displayed in a new window okay (the profile manager is not opened).

There seem to be two problems with the mozilla-launcher script:
(i) it doesn't know what to do with the '-a firefox' options that xfhelp4 uses as part of its attempt to open a new firefox window;
(ii) it terminates with error code 0 instead of the error code from the browser.

Reproducible: Always
Steps to Reproduce:
1.Close firefox windows
2.BROWSER=firefox xfhelp4

(alternatively, use mozilla instead of firefox in the above).

Alternatively, if you do not have Xfce installed, try this:

1.Close all firefox windows
2.firefox -a firefox -remote 'openurl(http://www.gentoo.org/,new-window)'

Actual Results:  
Result of BROWSER=firefox bash -x xfhelp4 :  
  
+ '[' xfirefox = x ']'  
+ '[' xfirefox = x ']'  
+ HELP_DIR=/usr/share/xfce4/doc/  
+ '[' '!' x = x ']'  
+ HELP_FILE=index.html  
+ '[' -n '' ']'  
+ '[' -n '' ']'  
+ LC=C  
+ '[' -r /usr/share/xfce4/doc//C/index.html ']'  
+ URL=/usr/share/xfce4/doc//C/index.html  
+ case $BROWSER in  
+ firefox -a firefox -remote  
'openurl(file:///usr/share/xfce4/doc//C/index.html,new-window)'  
No running windows found  
Error: No running window found  
+ '[' 0 -ne 0 ']'  
+ exit 0  
  
  
Result of running bash -x firefox -a firefox -remote  
'openurl(http://www.gentoo.org/,new-window)' 
(note how the '-a firefox' options get moved about by the script): 
  
+ newtype=window 
+ 
PATH=/usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.3:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/bin 
+ main -a firefox -remote 'openurl(http://www.gentoo.org/,new-window)' 
+ local args mozargs urls u i 
+ local candidates retval=0 remote_supports_dash_a progname 
+ local zero=firefox 
+ which_browser 
+ case $zero in 
+ export MOZILLA_FIVE_HOME=/usr/lib/MozillaFirefox 
+ MOZILLA_FIVE_HOME=/usr/lib/MozillaFirefox 
+ remote=/usr/lib/MozillaFirefox/mozilla-xremote-client 
+ mozbin=/usr/lib/MozillaFirefox/firefox-bin 
+ grepfor=Firefox-bin 
+ [[ -n /usr/lib/MozillaFirefox/firefox-bin ]] 
+ [[ ! -f /usr/lib/MozillaFirefox/firefox-bin ]] 
+ case $zero in 
+ [[ -z /usr/lib/MozillaFirefox/firefox-bin ]] 
+ [[ ! -f /usr/lib/MozillaFirefox/firefox-bin ]] 
+ progname=firefox 
+ [[ firefox == thunderbird ]] 
+ export 
LD_LIBRARY_PATH=/usr/lib/MozillaFirefox:/usr/lib/MozillaFirefox/plugins 
+ LD_LIBRARY_PATH=/usr/lib/MozillaFirefox:/usr/lib/MozillaFirefox/plugins 
+ return 0 
+ parse_cmdline -a firefox -remote 'openurl(http://www.gentoo.org/,new-window)' 
+ args=() 
+ mozargs=() 
+ urls=() 
+ [[ 4 -ne 0 ]] 
+ [[ -a == -* ]] 
+ case "${1#-}" in 
+ args=("${args[@]}" "$1") 
+ shift 1 
+ [[ 3 -ne 0 ]] 
+ [[ firefox == -* ]] 
+ [[ firefox == *://*/* ]] 
+ [[ firefox == *://* ]] 
+ [[ firefox != *://* ]] 
+ [[ firefox != /* ]] 
+ [[ -e firefox ]] 
+ [[ firefox != *:* ]] 
+ [[ firefox == *@* ]] 
+ urls=("${urls[@]}" "$1") 
+ shift 
+ [[ 2 -ne 0 ]] 
+ [[ -remote == -* ]] 
+ case "${1#-}" in 
+ mozargs=("${mozargs[@]}" "$1" "$2") 
+ shift 2 
+ [[ 0 -ne 0 ]] 
+ return 0 
+ [[ 4 -eq 0 ]] 
+ find_running 
+ local screens s 
+ screens=("$DISPLAY" $(xdpyinfo | awk ' 
      /^name of display:/ {  
        disp = substr($NF, 0, match($NF, /\.[^.]*$/)-1) 
      } 
      /^number of screens:/ { 
        for (i = 0; i < $NF; i++) { 
          this = sprintf("%s.%d", disp, i) 
          if (this != ENVIRON["DISPLAY"]) 
            print this 
        } 
      }')) 
++ xdpyinfo 
++ awk ' 
      /^name of display:/ {  
        disp = substr($NF, 0, match($NF, /\.[^.]*$/)-1) 
      } 
      /^number of screens:/ { 
        for (i = 0; i < $NF; i++) { 
          this = sprintf("%s.%d", disp, i) 
          if (this != ENVIRON["DISPLAY"]) 
            print this 
        } 
      }' 
+ [[ :0.0 != :* ]] 
+ killall -0 firefox-bin 
+ candidates=() 
+ set -- -remote 'openurl(http://www.gentoo.org/,new-window)' 
+ [[ 2 -gt 0 ]] 
+ case $1 in 
+ try_running 'openurl(http://www.gentoo.org/,new-window)' 
+ local s retval=2 
+ [[ -z '' ]] 
+ /usr/lib/MozillaFirefox/mozilla-xremote-client 
+ grep -Fq '[-a ' 
+ remote_supports_dash_a=true 
+ [[ 0 > 0 ]] 
+ case $retval in 
+ echo 'No running windows found' 
No running windows found 
+ return 2 
+ [[ 2 -eq 0 ]] 
+ args=("$@" "${args[@]}") 
+ break 
+ [[ 3 -gt 0 ]] 
+ try_start -remote 'openurl(http://www.gentoo.org/,new-window)' -a firefox 
+ local f 
++ find /home/abbotti/.firefox /home/abbotti/.mozilla/firefox '!' -uid 501 
++ head -n10 
+ f= 
+ [[ -n '' ]] 
+ for f in '~/{.,.mozilla/}${zero%-bin}/*/{compreg.dat,chrome.rdf,XUL.mfasl}' 
+ [[ -f /home/abbotti/.firefox/*/compreg.dat ]] 
+ for f in '~/{.,.mozilla/}${zero%-bin}/*/{compreg.dat,chrome.rdf,XUL.mfasl}' 
+ [[ -f /home/abbotti/.firefox/*/chrome.rdf ]] 
+ for f in '~/{.,.mozilla/}${zero%-bin}/*/{compreg.dat,chrome.rdf,XUL.mfasl}' 
+ [[ -f /home/abbotti/.firefox/*/XUL.mfasl ]] 
+ for f in '~/{.,.mozilla/}${zero%-bin}/*/{compreg.dat,chrome.rdf,XUL.mfasl}' 
+ [[ -f /home/abbotti/.mozilla/firefox/7zaio0ia.default/compreg.dat ]] 
+ [[ /home/abbotti/.mozilla/firefox/7zaio0ia.default/compreg.dat 
-ot /usr/lib/MozillaFirefox/firefox-bin ]] 
+ for f in '~/{.,.mozilla/}${zero%-bin}/*/{compreg.dat,chrome.rdf,XUL.mfasl}' 
+ [[ -f /home/abbotti/.mozilla/firefox/*/chrome.rdf ]] 
+ for f in '~/{.,.mozilla/}${zero%-bin}/*/{compreg.dat,chrome.rdf,XUL.mfasl}' 
+ [[ -f /home/abbotti/.mozilla/firefox/7zaio0ia.default/XUL.mfasl ]] 
+ [[ /home/abbotti/.mozilla/firefox/7zaio0ia.default/XUL.mfasl 
-ot /usr/lib/MozillaFirefox/firefox-bin ]] 
+ set -- firefox 
+ shift 
+ urls=("$@") 
+ candidates=:0.0 
+ args=() 
+ [[ 0 -gt 0 ]] 
+ wait 
+ /usr/lib/MozillaFirefox/firefox-bin -remote 
'openurl(http://www.gentoo.org/,new-window)' -a firefox 
Error: No running window found 
+ exit 0 
 


equery -C b /usr/libexec/mozilla-launcher  
[ Searching for file(s) /usr/libexec/mozilla-launcher in *... ] 
net-www/mozilla-launcher-1.23 (/usr/libexec/mozilla-launcher) 
 
emerge info 
Gentoo Base System version 1.6.9 
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3, 
glibc-2.3.4.20041102-r0, 2.4.28-gentoo-r5 i686) 
================================================================= 
System uname: 2.4.28-gentoo-r5 i686 AMD Duron(tm) processor 
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Feb  3 2005, 16:07:36)] 
dev-lang/python:     2.3.4 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.5, 1.8.5-r3, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4 
sys-devel/binutils:  2.15.92.0.2-r2 
sys-devel/libtool:   1.5.10-r4 
virtual/os-headers:  2.4.22 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" 
DISTDIR="/work/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo 
http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups doc encode esd f77 
fam font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib 
ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls 
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl 
slang spell ssl svg svga tcpd tiff truetype truetype-fonts type1-fonts unicode 
xml2 xmms xv zlib video_cards_radeon linguas_en_GB" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Toralf Förster gentoo-dev 2005-03-09 03:05:44 UTC
*** Bug 84091 has been marked as a duplicate of this bug. ***
Comment 2 Ian Abbott 2005-03-09 04:44:03 UTC
Should this bug be reassigned to the Mozilla team?  As I mentioned in my original report, I think it's a problem with the mozilla-launcher script.
Comment 3 Toralf Förster gentoo-dev 2005-03-09 05:10:56 UTC
yes, you should do that
Comment 4 Ian Abbott 2005-03-09 06:01:26 UTC
My question was really directed at the XFCE team!
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2005-03-15 16:22:08 UTC
This should be fixed in version 1.26, released just now in ~arch.  Mind testing?
Comment 6 Toralf Förster gentoo-dev 2005-03-16 00:49:17 UTC
works for me :-)
Comment 7 Aron Griffis (RETIRED) gentoo-dev 2005-03-16 09:13:22 UTC
Thanks Toralf.

Sorry to everybody who had to put up with this for so long. :-(
Comment 8 Brad Cowan (RETIRED) gentoo-dev 2005-03-16 09:26:03 UTC
help stuff open up here with firefox, but the profile manager pops up too, so I don't know if this is fixed :((