[Portland-bugs] [Bug 14374] New: xdg-open fails if $BROWSER has arguments

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 4 14:47:13 PST 2008


http://bugs.freedesktop.org/show_bug.cgi?id=14374

           Summary: xdg-open fails if $BROWSER has arguments
           Product: Portland
           Version: 1.0
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
        AssignedTo: portland-bugs at lists.freedesktop.org
        ReportedBy: ih-mon at gmx.de


Hi,
xdg-open fails on my system without a desktop environment.
so DE is setted to nothing and the generic function is executed.
my $BROWSER variable is set to "/usr/bin/opera -newpage %s"
it fails with following error : 
[johannes at ThinkpadT40Johannes ~]$xdg-open kernel.org
 /usr/bin/xdg-open: line 370: /usr/bin/opera -newpage kernel.org: No such file
or directory

a fix i found with some other in the irc chanel on freenode is to add eval to
line 370 wich means the following : 

instead of:

            if [ x"$browser_with_arg" = x"$browser" ]; then "$browser" "$1";
            else $browser_with_arg;
            fi

use :
            if [ x"$browser_with_arg" = x"$browser" ]; then "$browser" "$1";
            else eval $browser_with_arg;
            fi


i hope it will be included in the next version ;)


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Portland-bugs mailing list