~willismonroe/ubuntu/precise/xdg-utils/typo-fix-996304

« back to all changes in this revision

Viewing changes to debian/patches/xdg-open-browser-multiword.diff

  • Committer: Bazaar Package Importer
  • Author(s): Per Olofsson
  • Date: 2011-02-20 18:34:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110220183453-7p0edr23dygfhseg
Tags: 1.1.0~rc1-2
* Tag patches with upstream bug URLs.
* Add patch xdg-mime-follow-symlinks.diff: Follow symlinks when
  querying MIME type in xdg-mime.
* Add patch xdg-open-browser-multiword.diff: Fix support for multi-word
  $BROWSER commands. Closes: #612339.
* Add patch xdg-open-printf.diff: Use /usr/bin/printf if available when
  decoding URLs. dash's printf doesn't understand \xHH
  sequences. Closes: #613272.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Fix support for multi-word $BROWSER commands.
 
2
Author: Per Olofsson <pelle@debian.org>
 
3
Bug-Debian: http://bugs.debian.org/612339
 
4
--- a/scripts/xdg-open
 
5
+++ b/scripts/xdg-open
 
6
@@ -442,8 +442,10 @@ open_generic()
 
7
         fi
 
8
     fi
 
9
 
 
10
+    OLDIFS="$IFS"
 
11
     IFS=":"
 
12
     for browser in $BROWSER; do
 
13
+        IFS="$OLDIFS"
 
14
         if [ x"$browser" != x"" ]; then
 
15
 
 
16
             browser_with_arg=`printf "$browser" "$1" 2>/dev/null`
 
17
@@ -452,7 +454,7 @@ open_generic()
 
18
             fi
 
19
 
 
20
             if [ x"$browser_with_arg" = x"$browser" ]; then
 
21
-                "$browser" "$1";
 
22
+                $browser "$1";
 
23
             else eval '$browser_with_arg'$xdg_redirect_output;
 
24
             fi
 
25