After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 169670 - The gnome-default-applications-properties caplet should set default program for file types
The gnome-default-applications-properties caplet should set default program f...
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: [obsolete] Preferred applications
2.13.x
Other Linux
: Normal normal
: ---
Assigned To: Luca Cavalli
Control-Center Maintainers
: 308803 331106 536818 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-03-08 23:32 UTC by Alex Converse
Modified: 2011-09-09 10:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Alex Converse 2005-03-08 23:32:45 UTC
Version details: 2.10.0
Distribution/Version: Ubuntu hoary

The Preferred Applications (gnome-default-applications-properties) capplet
should set the default opener fot html and xhtml files when setting the default
web browser. The current behavior doesn't set this so when an "activate_uri"
gets called (back) for an html file on the hard disk i.e.
"file:///usr/share/blah/foo.html" it gets opened with a different program.

As a side note which proably needs its own bug, bugzilla needs a 2.10.x entry
under this component.
Comment 1 Teppo Turtiainen 2005-07-15 18:43:48 UTC
*** Bug 308803 has been marked as a duplicate of this bug. ***
Comment 2 Matthew East 2006-02-09 17:16:55 UTC
Confirming that this bug is still there with GNOME 2.13.90

Nautilus does not use x-www-browser to open local files.

Is there any prospect of this being fixed?
Comment 3 Wouter Bolsterlee (uws) 2006-02-14 11:40:16 UTC
Don't forget application/xhtml+xml in addition to text/html if the behaviour of the "Default browser" setting is changed.
Comment 4 Crispin Flowerday (not receiving bugmail) 2006-02-14 12:13:15 UTC
*** Bug 331106 has been marked as a duplicate of this bug. ***
Comment 5 Luca Cavalli 2006-10-05 20:21:12 UTC
*** Bug 359986 has been marked as a duplicate of this bug. ***
Comment 6 Christof Krüger 2007-03-02 14:53:52 UTC
The same problem can be observed when double-clicking .desktop files with URL type. Firefox is started regardless of the preferred browser setting.
Comment 7 Pascal de Bruijn 2008-03-20 18:19:52 UTC
This problem is still present in GNOME 2.20.1 (tested on Ubuntu Gutsy).
Comment 8 Thomas Wood 2008-04-18 23:20:55 UTC
Not sure about this bug. I can think of some use cases where you wouldn't want .html or .xhtml files to be associated with the web browser (if you are a web developer for example).

I think it's understandable that "default web browser" and "application to open .html files" are two separate options.
Comment 9 Sebastien Bacher 2008-04-19 08:54:16 UTC
Thomas, several people reported bugs about that so I don't think it's that clear to users how it's working and why
Comment 10 Jens Granseuer 2008-04-19 10:46:37 UTC
In my opinion, the fact that users report bugs about this is more a problem of how associating mime types with apps works nowadays, though (which is pretty much undiscoverable).
Comment 11 Thomas Wood 2008-04-19 11:53:33 UTC
I agree with Jens, I think mime-type associations are difficult to configure and it is this problem we should be addressing.
Comment 12 Sebastien Bacher 2008-04-19 12:25:45 UTC
is there any need to have something else than a mimetype association though? when a user opens an image over http he should get the image viewer, when he opens a webpage it should get the associated application, the url against mimetype difference doesn't make sense to users
Comment 13 Richard Laager 2008-06-24 15:52:55 UTC
I'm running into the .desktop URL shortcuts problem. That's definitely a case of an URL not opening in the browser, so it's not strictly a duplicate of this (although it is mentioned here). That should be uncontroversial to fix.

Regarding the .html vs. browser issue... I think it's perfectly reasonable to allow people to set that to open a text editor or whatever. That works now, regardless of how discoverable it is, right? If so, the discoverability or ease-of-use of the MIME type setting is a separate issue.

The solution here is NOT that the gnome-default-applications-properties caplet should set a MIME handler. Instead, the default .html handler should be gnome-www-browser. In this way, .html files would open by default in your preferred browser. If you changed your preferred browser later, .html files would open in that preferred browser. It would need no special-case logic in the caplet and wouldn't prevent people from changing the default action to be open in gedit, for example.
Comment 14 antistress 2009-04-19 14:46:06 UTC
i was about to fill a similar report.

concerning comment #8 from Thomas Wood

i think that bug should be fix regarding average user

for instance web developer is not average user

clicking on an html file should launch the prefered application

advanced user always has the possibilty to choose another application from the contextual menu

Comment 15 Leif Gruenwoldt 2009-09-16 14:31:29 UTC
Still a problem in gnome 2.26.3

I'm not sure what's so controversial that this takes 4+ years to resolve

For the user it's as simple as the following...


Steps to reproduce:

1. Run `gnome-default-applications-properties` and set Epiphany as default browser

2. Browse to google.com in Epiphany

3. Drag the address bar link to the desktop to create a shortcut

4. Double click the shortcut on your desktop

Expected Result:

Link to open in Epiphany

Actual Result:

Link opens in Firefox
Comment 16 Thomas Wood 2009-11-14 18:36:50 UTC
*** Bug 536818 has been marked as a duplicate of this bug. ***
Comment 17 Luke Schlather 2010-01-31 19:57:42 UTC
It's worth noting that this shows up in a variety of contexts where programs are using mime to determine what browser to open. I've noticed it on springlobby, Hulu Desktop, and even Gnome's own Pidgin. None of these are using it in a context where having anything other than the web browser open it makes sense.
Comment 18 Sven Herzberg 2010-02-02 14:55:41 UTC
(In reply to comment #17)
...
> and even Gnome's own Pidgin
...

Just to properly emphasize this: Pidgin is not part of GNOME. GNOME uses Empathy as the default messenger, and the pidgin developers don't want their product to be included in GNOME.
Comment 19 Jakob Unterwurzacher 2010-06-09 12:00:54 UTC
Created separate bug for the uncontroversial .desktop issue:

https://bugzilla.gnome.org/show_bug.cgi?id=621093
Wrong browser is launched when double clicking a link desktop entry (.desktop) file
Comment 20 Bastien Nocera 2011-09-09 10:10:15 UTC
The "Preferred Applications" capplet is now gone in GNOME 3, and most of its code was rewritten. If you experience problems using the "System Info" panel in GNOME 3's system settings, please file a new bug.