Bug 124032

Summary: a default browser with "htmlview" in the name is not allowed
Product: [Fedora] Fedora Reporter: David Baron <dbaron>
Component: htmlviewAssignee: Christopher Aillon <caillon>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-25 07:15:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Baron 2004-05-23 01:12:49 UTC
Description of problem:
A default browser with "htmlview" in the name is forbidden.  The user
interface displays a dialog that says that the default browser is an
invalid browser, but doesn't say why.

There are three problems here:
 * the restriction is probably too specific (you want to restrict to
the entire basename being "htmlview", not having "htmlview" within the
name)
 * the error dialog gives no hint about why the browser is invalid
 * the error dialog gives no hint about what program is bringing up
the error dialog (which wouldn't be a problem if the previous point
weren't a problem)

Version-Release number of selected component (if applicable):
htmlview-3.0.0-4

How reproducible:
Always

Steps to Reproduce:
1. Create a brower shell script called htmlviewrc.
2. Make it the default browser in Preferences | Preferred Applications
3. Launch a URL from gnome-terminal
  
Actual results:
Error dialog.

Expected results:
Launch browser.

Additional info:
Why do I care?  I have an old .htmlviewrc file that stands fully on
its own -- i.e., it executes the browser and terminates when sourced,
and I tend to configure it as the default browser instead of htmlview
(and now need to, due to changes in htmlview and htmlview's general
lack of X-Remote support).  And I really want it to be my default
browser.  I didn't enjoy having to spend fifteen minutes poking around
and reading /usr/bin/htmlview to figure out why my choice of default
browser was invalid and that the solution was renaming my script.

Comment 1 Warren Togami 2005-04-25 07:15:17 UTC
Sorry no.  .htmlviewrc is irrelevant with modern software.  X-Remote support is
no longer a problem as it is dealt with each browser's launching script.


Comment 2 David Baron 2005-04-26 20:38:44 UTC
If it's irrelevant, then why is it still used?  This is a bug in
/usr/bin/htmlview , and I wouldn't have hit it if it were not used.

(My .htmlviewrc file does a lot of things that I still actually need, mostly
related to which of my Mozilla development trees and which profile I should
currently be using as my default browser.)

Comment 3 Warren Togami 2005-04-27 00:20:19 UTC
Few people if anyone uses .htmlviewrc, and the modern htmlview completely avoids
that codepath for normal desktop usage.  Consider it deprecated.

And was .htmlviewrc ever meant to be executable itself?  That seems extremely odd.

Comment 4 David Baron 2005-04-27 00:46:05 UTC
(In reply to comment #3)
> Few people if anyone uses .htmlviewrc, and the modern htmlview completely
> avoids that codepath for normal desktop usage.  Consider it deprecated.

Fine with me.  If the error message *says* that it's deprecated (i.e., says that
the problem with the browser is that part of its filename is "htmlview" or
"gnome-open"), then I'd consider this bug fixed adequately.

I vaguely remember that there was a version when the only way to do anything
useful with .htmlviewrc was to have it do the execution, due to some other bug
in htmlview.