Bug 203748

Summary: Firefox fail to open local file with space in path.
Product: [openSUSE] SUSE Linux 10.1 Reporter: Christian Filteau <ch819762>
Component: FirefoxAssignee: E-mail List <bnc-team-mozilla>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: andreas.hanke
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christian Filteau 2006-09-05 21:21:24 UTC
Firefox fail to open local file with space in path.

Firefox version: 1.5.0.6
Note: The problem is in the distribution, not in the version from the Mozilla web site.
There is no problem if we use the File menu of Firefox.

Example:
From Konqueror, try to open the following file with Firefox:
"/home/user/folder with spaces/file.html"

------------------------------------------------
Solution:

Open the file "/usr/lib/firefox/firefox.sh".

Replace the line:
$AOSS $MOZ_PROGRAM $@

By:
$AOSS $MOZ_PROGRAM "$@"

------------------------------------------------
Comment 1 Christian Filteau 2006-09-23 21:12:54 UTC
Not fixed in 1.5.0.7-1.2

Solution for 1.5.0.7-1.2:

Open the file "/usr/lib/firefox/firefox.sh".

Replace:
---------------------------------------------------
if [ -d /proc/asound ]; then
  LD_PRELOAD=/usr/$LIB/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD} $MOZ_PROGRAM $@
else
  $MOZ_PROGRAM $@
fi
---------------------------------------------------

By:
---------------------------------------------------
if [ -d /proc/asound ]; then
  LD_PRELOAD=/usr/$LIB/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD} $MOZ_PROGRAM "$@"
else
  $MOZ_PROGRAM "$@"
fi
---------------------------------------------------

Comment 2 Michael Wolf 2007-01-25 18:09:10 UTC
Gnome is configured to use /usr/bin/firefox %s (apparently it takes care of the quoting for you).  I suspect that kde should be similarly configured.

-> kde dudes.
Comment 3 Lubos Lunak 2007-01-29 16:44:53 UTC
$rpm -qf /usr/lib/firefox/firefox.sh
MozillaFirefox-2.0.0.1-0.1

KDE maintainers do not maintain that.
Comment 4 Wolfgang Rosenauer 2007-01-29 16:49:29 UTC

*** This bug has been marked as a duplicate of bug 231683 ***