Bug 132869 - htmlview doesnt check correctly if browser exists
Summary: htmlview doesnt check correctly if browser exists
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: htmlview
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-09-18 13:29 UTC by Dams
Modified: 2013-04-02 04:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-09-19 04:51:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dams 2004-09-18 13:29:27 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2)
Gecko/20040809 Galeon/1.3.17

Description of problem:
Here's my gconf key :
[user@host ~]# gconftool-2 -g /desktop/gnome/url-handlers/http/command
galeon -n --noraise %s

so, htmlview is check if the prorgam "galeon -n --noraise" exists.
Which is just bad. I'm not sure you want to do it this way, but here's
my fix: 

exists() {
    which "${1%% *}" 2> /dev/null > /dev/null
    return $?
}

as "$1" is "galeon -n --noraise", "${1%% *}" is just "galeon" [without
anything after the first space].

Version-Release number of selected component: htmlview(0:3.0.0-4).noarch

How reproducible: Always

Comment 1 Warren Togami 2004-09-18 19:43:51 UTC
thx, I will test this.

Comment 2 Warren Togami 2004-09-19 04:51:28 UTC
Checked in.


Note You need to log in before you can comment on or make changes to this bug.