Firefox should use the GNOME application chooser

Bug #18995 reported by Damon W
690
This bug affects 119 people
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Fix Released
Medium
Declined for 3.0 by Micah Gersten
Nominated for 3.6 by Thomas Novin
firefox (Ubuntu)
Fix Released
Low
Unassigned
Declined for Hardy by Mathew Hodson
Declined for Jaunty by Mathew Hodson
Declined for Karmic by Mathew Hodson
thunderbird (Ubuntu)
Fix Released
Undecided
Unassigned
Declined for Hardy by Mathew Hodson
Declined for Jaunty by Mathew Hodson
Declined for Karmic by Mathew Hodson

Bug Description

When choosing to open a file in Firefox, an "Open With" dialog appears.
You can choose to save the file or open it with a program from the list.
However, if the desired program to open the file with is NOT listed, the user
must navigate the filesystem to /usr/bin (or wherever) and select the
appropriate program.

A more user-friendly way would be to list all of the known programs installed
that are available to open files with, and then have an "Other..." or
"Advanced..." button for the user who would rather navigate the filesystem.

Revision history for this message
Jorge Castro (jorge) wrote :
Revision history for this message
David Farning (dfarning) wrote :

It does not look like much is happening upstream with this bug. It might make
more sense to make a gnome specific patch for Ubuntu until it is solved upstream.

-dtf

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

*** Bug 21248 has been marked as a duplicate of this bug. ***

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

*** Bug 21249 has been marked as a duplicate of this bug. ***

Revision history for this message
Matthew East (mdke) wrote :

*** Bug 24789 has been marked as a duplicate of this bug. ***

Revision history for this message
Alexandre Otto Strube (surak) wrote :

This should be fixed in firefox-gnome-support , which I don't know if it's valid upstream. https://bugzilla.mozilla.org/show_bug.cgi?id=56662 has this bug marked as "new" for about six years.

Revision history for this message
Alexandre Otto Strube (surak) wrote :

Unless it is done in firefox-gnome-support (and it's counterpart in kde), it seems we will not have it done soon.

Changed in firefox:
status: Unconfirmed → Rejected
Revision history for this message
Matthew East (mdke) wrote :

this bug was marked as rejected but I'm reopening it: it is clearly a bug, and unless the maintainer indicates clearly that he is not prepared to fix this in any future release, the bug shouldn't be closed. Ian, if you really think this won't be doable even for Dapper+1, close the bug.

Changed in firefox:
status: Rejected → Confirmed
Revision history for this message
Ian Jackson (ijackson) wrote :

I agree that it's a bug. However, I don't think we've got the effort available to fix this in Ubuntu, and we'd probably prefer not to maintain the resulting patch either. So this issue is best addressed upstream, I think.

So I'm setting the bug state for the `Ubuntu task' to `Rejected' again (the LP team assure me that `Rejected' is correct in this case, even though I think the complaint is valid).

Changed in firefox:
status: Confirmed → Rejected
Revision history for this message
Matthew East (mdke) wrote :

Fair enough. Does "upstream" mean mozilla in this case, given that the problem is the use of the wrong GNOME dialogue? Or should this be in the GNOME bugtracker?

Matt

Revision history for this message
Ian Jackson (ijackson) wrote : Re: [Bug 18995] Re: "Open With" dialog not user-friendly

Matthew East writes ("[Bug 18995] Re: "Open With" dialog not user-friendly"):
> Fair enough. Does "upstream" mean mozilla in this case, given that
> the problem is the use of the wrong GNOME dialogue? Or should this
> be in the GNOME bugtracker?

I think upstream means Mozilla in this case.

Ian.

Changed in firefox:
status: Unconfirmed → Confirmed
Revision history for this message
Matthew East (mdke) wrote : Re: "Open With" dialog not user-friendly

The upstream bug seems to be doing nothing here. Also, it seems to be addressed at a slightly different issue - this bug is that firefox should be able to use the Gnome application chooser, whereas the upstream bug is about creating a new application chooser, or something of that kind.

I'm fairly sure that a couple of Ubuntu releases ago firefox used the Gnome application chooser, whereas with the firefox-gnome-support package in dapper it now just uses a file chooser.

Has anyone investigated whether it would be difficult to use the Gnome application chooser when firefox-gnome-support is installed?

Matt

Revision history for this message
In , Dmose (dmose) wrote :

This is the Linux equivalent of bug 348808. Requesting [wanted-1.9].

Ian Jackson (ijackson)
Changed in firefox:
assignee: ijackson → nobody
Revision history for this message
In , Dmose (dmose) wrote :

Re-requesting blocking-1.9+, as it turns out this blocks bug 404434, and that already has blocking-1.9+.

Does anyone with GNOME experience have a take on how hard this would be (assuming it's possible)?

Revision history for this message
In , Dsicore (dsicore) wrote :

+'ing and marking as P3 which aligns with bug 404434.

Revision history for this message
In , Mh+mozilla (mh+mozilla) wrote :

IIRC, there is no direct gnome API to get such a list, though it is not very difficult to do so.
Anyways, I think first having bug 373397 landed would help making it more easily. I'll post an updated patch soon.

Revision history for this message
Thomas Novin (thomasn80) wrote :
Revision history for this message
Rory McCann (rorymcc) wrote :

This is also a problem with Thunderbird opening email attachements. I think Firefox should include the applications menu from gnome.

Revision history for this message
Hauke Hoffmann (hauke-nxt7) wrote :

This bug should be fast fixed!

Today, an normal new Linux-User asked me how to open a (sending) pdf-file, because he had no idea. The Firefox-open-dialog suggests the program 'less' (Why???). He has tried it. => nothings to see.
After that, I helped and choose /usr/bin/acroread manualy and save it as default.

That's very unusable for _human_ users.

Revision history for this message
In , clemens (clemens-endorphin) wrote :

The Gnome API to get the list of all applications registered for a mimetype call gnome_vfs_mime_get_all_application(const char *mimetype);

The implementation could look like:

NS_IMETHODIMP
nsGnomeVFSService::GetAllAppsForMimeType(const nsACString &aMimeType,
                                      nsIGnomeVFSMimeApp** aApp)
{
   *aApps = nsnull;
   GList *apps =
    gnome_vfs_mime_get_all_application(PromiseFlatCString(aMimeType).get());

    while(apps) {
       GList *next = apps->next;
       nsGnomeVFSMimeApp *mozApp = new nsGnomeVFSMimeApp(apps->data);
       NS_ENSURE_TRUE(mozApp, NS_ERROR_OUT_OF_MEMORY);

       NS_ADDREF(apps->data = mozApp);
   }
   return NS_OK;
}

Revision history for this message
diablo75 (dave-davestechsupport) wrote :

Holy crap, I can't believe I was about to report this bug and have come to find that it's been here since 2005!!! WTF? Seriously, WTF!

When I click on a link to a *.pls file (otherwise known as a "Shoutcast MP3 playlist") It presents the attached screenshot.

Lets say I don't want it to open it with Totem. Instead, I'd like it to play in VLC, (or XMMS for those die hard XMMS fans out there). So I click on the drop down where "Movie Player" is currently shown, and select "Other..." because NOTHING ELSE IS THERE.

Instead of being presented with a nice listing of installed applications, I'm asked to browse my root file structure. I, after 3 years of using this OS, still have little idea as to where I should even look to find VLC or any other app for that matter. New users, I would bet hard cash, HATE THIS. Sorry.

Revision history for this message
Michael Jones (jonesmz) wrote :

I (Obviously) experience this as well. It's insanely annoying. I don't even try to open the files through that dialog anymore, and instead just save them and open them from the nautilus desktop. This can't be that difficult to fix. Can't we patch the version of Firefox that we use for Ubuntu? Firefox is open-source. We can patch the program with or without the permission of Mozilla. Lets DO that.

Revision history for this message
caberg (caberg-408) wrote :
Revision history for this message
John Vivirito (gnomefreak) wrote :

Voting on a Ubuntu site isnt going to help at all since we are waiting for upstream to fix it than we can add it,

Revision history for this message
John Vivirito (gnomefreak) wrote :

marked confirm

Changed in mozilla-thunderbird:
status: New → Confirmed
Revision history for this message
John Vivirito (gnomefreak) wrote :

This a bug in firefox as well it is a valid bug against the core of mozilla.

Changed in firefox:
status: Invalid → Confirmed
Revision history for this message
Thomas Novin (thomasn80) wrote :

This should be linked to Mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=370380 instead. I can't figure out how to change that though?

Matthew East (mdke)
Changed in firefox:
status: Confirmed → Unknown
Revision history for this message
John Vivirito (gnomefreak) wrote :

Changed firefox task to use 3.0. 2.0 will not get this fix. Marked as low importance since its a bug not a wish and it is not cuasing any security related issues nor does it crash.

Changed in firefox:
importance: Wishlist → Low
Changed in firefox:
status: Unknown → Confirmed
Revision history for this message
Coren (coren+) wrote :

Hi *,

   With this small patch applied on Firefox 3 source code, (patch to apply on xulrunner-1.9 package), there's no more need to "open with" and no more problems with others Desktop environments like KDE or XFCE.
   It's based (and so requires) a really small dependency : xdg-open (~5Kb of perl script) and provides a unified way for opening files in Firefox, directly using System Defaults.

   It can be enhanced with a patch on this dialog, replacing "open with" label with something like "open file". We already applied this fix successfully for ~ 1000 users since 3 months, and no problem shown up.
   I am currently trying to push it upstream, but maybe an Ubuntu integration can help this process.

Regards,

Revision history for this message
Jan Claeys (janc) wrote :

Coren, I didn't test it, but I don't think your patch addresses this bug. What this bug is about is that you can't optionally choose other applications registered for the same file type (as is common in e.g. nautilus).

(Sorry if I'm wrong about your patch.)

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote :

Hi,
It is clearly a bug because this make "open with" unusable for non geek users. Firefox is one of the most used applications for them. My father simply cannot choose how to open downloaded files. He is totally lost when firefox asks him the "open with" dialog.

Revision history for this message
Coren (coren+) wrote :

Jan Claeys,
   maybe you are wrong with my patch or maybe I am wrong from my point of view :). Let me explain : If you do not have to choose an application at all, you solve the problem with registrations of applications.
   There's already one place where one registers its application : the desktop environment. It seems enough to me, and it also seems the good place for doing this. Firefox should just shut up and use those preferences.

regards,

Revision history for this message
Jan Claeys (janc) wrote :

@Coren: there are often multiple applications for the same MIME-type registered with the desktop-environment, but currently in Firefox there is no way to select them from that list of registered applications, nor does it allow you to select from the other registered applications (e.g. because the MIME-type is/was unknown or wrong, but an application can still open it).

Revision history for this message
In , Orion-cora (orion-cora) wrote :

Similar to https://bugzilla.mozilla.org/show_bug.cgi?id=370380

Please try to implement a cross-desktop (xdg-* tool based?) solution.

Revision history for this message
In , Jmathies (jmathies) wrote :

*** Bug 370380 has been marked as a duplicate of this bug. ***

Changed in firefox:
status: Confirmed → Invalid
Revision history for this message
John Vivirito (gnomefreak) wrote :

Updated upstream task since that bug was marked a duplicate.

Changed in firefox:
status: Invalid → Unknown
summary: - "Open With" dialog not user-friendly
+ [MASTER] "Open With" dialog not user-friendly
Changed in firefox:
status: Unknown → Confirmed
Revision history for this message
In , Arromdee (arromdee) wrote :

Repeating my comment from the other bug since it doesn't sound like this addresses it:

-- The list of content types can't be modified, even to add something
identified only by file extension. I just ran into this when trying to get a
.ssa file. Firefox tried to open it and couldn't (not surprising). There's no
way to add "file with extension ssa" to the content type list, and I have no
idea whatsoever whether Firefox thinks it has a mime type or is just treating
it as unknown.
-- On that subject, there's no entry for "unknown content type" (at least on my
machine). Want to tell Firefox to save all files with an unknown content type?
 Forget it.
-- There's no way to tell Firefox whether to determine content type by
extension first or by Mime type sent by the server first. I recently tried to
open a PDF file whose content type Firefox seemed to think was BIN. There was
no way to tell Firefox that the .PDF in the filename takes precedence over the
bogus Mime type sent by the server.
-- There's usually no option "open in browser". I want to tell Firefox to open
text files in Firefox. Can't do that.

Revision history for this message
In , Coren (coren42) wrote :

Created attachment 373282
Removes file association mechanism of firefox and use xdg-open instead

Hi,

  I've made a small patch in order to progress on this issue. It removes Firefox file system associations and forces use of xdg-open. I do not think this patch is complete since it's not cross-platform, but I really think it's a good step in order to solve this problem.
  There's already a file association mechanism on a Linux Desktop environments (Gnome, Kde, Xfce, Lxde, etc, etc). xdg-open is a simple way to use it. It simplifies lifes of users, which do not have to choose their preferred software twice, it simplifies lifes of integrators, which do not have to choose the default for their distributions twice and it simplifies source code of Firefox : there's no more need to get a file association mechanism compatible with all Linux Desktop environment.

  I don't know who will be a good "requestee" to ask for a review of this patch, so I've left the field empty.

Regards,

Revision history for this message
In , Ventnor-bugzilla (ventnor-bugzilla) wrote :

You will have to request a review requestee for this patch to be looked at formally (and I'm not one of them).

This seems to be unreliable; the system default program name is displayed in the application pref pane but this may not be the same as what xdg-open uses. And like you said, this isn't cross platform.

Revision history for this message
In , Coren (coren42) wrote :

Michael Ventnor : You are on the root of this problem :
* Does Firefox really needs to have its own application pref ? Is this not the job of a desktop environment ?

  With this patch, one can also unifiy the open with/save dialog box. Instead of having "open with" vs "save file", one can make "open file/save file" which seems more consistent and unified with other "file openers" like konqueror, dolphin, nautilus, internet explorer, etc.
  Why Firefox should ask its user which software to use ? This is confusing and complicates lifes of both users, developers and packagers.

  I can make this patch cross-platform, with some #ifndef WIN32 or something similar. But is there a Firefox developer ready to apply this kind of patch ?

Revision history for this message
In , Sylvain Pasche (sylvain-pasche) wrote :

*** Bug 490124 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mozilla-bugs-2010-04 (mozilla-bugs-2010-04) wrote :

It should be noted that in KDE 4 the Open With dialoge can be accessed via the KOpenWithDialog class. This does require linking against kdebase, though. I do not know of a universal KDE / Gnome / *box solution, but please do not make this a Gnome-only solution. Should I ask on kde-devel or other lists how to access the Open With dialogue of the active desktop?

Thanks.

Revision history for this message
In , Sylvain Pasche (sylvain-pasche) wrote :

*** Bug 492104 has been marked as a duplicate of this bug. ***

Revision history for this message
In , GarthPS (garthps) wrote :

When you click on "open with" firefox should list available applications using
freedesktop specification instead of letting the (newbie or power)user looking
for the right folder containing the binary. Under any windows environment when
you click on a file that the environment does not know which application it
need to be launched with, it shows the user a list of all the different
application installed on the computer. WHy does firefow under linux does not
provide this kind of thing? Plus it is trivial to list all available
application by using freedesktop specification.
Personally it is a pan in the ass but as I deal quit well with my linux system
it is ok. But for newbies coming to the opensource/linux world, it is
completely destabilizing.
Thanks

Or yeah use xdg-open!!!
http://portland.freedesktop.org/xdg-utils-1.0/xdg-open.html

Revision history for this message
In , GarthPS (garthps) wrote :

the use-case of opening a file could be:
(default -but rules could be specified by user to overpass the default association)
automatically use the preferred user's application using xdg-open.
IF NO preferred association found
THEN popup dialog to the user like this http://www.amsn-project.net/w/upload/a/ab/Screenshot-4-5.jpg
giving him the choice between manual path or a list of available application (using freedesktop standard specification)
..my two cents..

Revision history for this message
In , Jmathies (jmathies) wrote :

(In reply to comment #15)
> the use-case of opening a file could be:
> (default -but rules could be specified by user to overpass the default
> association)
> automatically use the preferred user's application using xdg-open.
> IF NO preferred association found
> THEN popup dialog to the user like this
> http://www.amsn-project.net/w/upload/a/ab/Screenshot-4-5.jpg
> giving him the choice between manual path or a list of available application
> (using freedesktop standard specification)
> ..my two cents..

Fx already supports this and an app picker dialog, we just need to figure out how to populate it by implementing possibleLocalHandlers. (See bug 348808)

Revision history for this message
In , Ventnor-bugzilla (ventnor-bugzilla) wrote :

(In reply to comment #16)
> (In reply to comment #15)
> > the use-case of opening a file could be:
> > (default -but rules could be specified by user to overpass the default
> > association)
> > automatically use the preferred user's application using xdg-open.
> > IF NO preferred association found
> > THEN popup dialog to the user like this
> > http://www.amsn-project.net/w/upload/a/ab/Screenshot-4-5.jpg
> > giving him the choice between manual path or a list of available application
> > (using freedesktop standard specification)
> > ..my two cents..
>
> Fx already supports this and an app picker dialog, we just need to figure out
> how to populate it by implementing possibleLocalHandlers. (See bug 348808)

Moving to GVFS and GIO will make this easy. I'm hoping to do that (plus a bump to GTK 2.14) in the Firefox 3.next timeframe.

Revision history for this message
In , GarthPS (garthps) wrote :

(In reply to comment #16)
> (In reply to comment #15)
> > the use-case of opening a file could be:
> > (default -but rules could be specified by user to overpass the default
> > association)
> > automatically use the preferred user's application using xdg-open.
> > IF NO preferred association found
> > THEN popup dialog to the user like this
> > http://www.amsn-project.net/w/upload/a/ab/Screenshot-4-5.jpg
> > giving him the choice between manual path or a list of available application
> > (using freedesktop standard specification)
> > ..my two cents..
>
> Fx already supports this and an app picker dialog, we just need to figure out
> how to populate it by implementing possibleLocalHandlers. (See bug 348808)

You means in the dev branch, it is not released yet.right?

And to Micheal, what is "Firefox 3.next timeframe."? 3.5 ?

thx

Revision history for this message
In , Jmathies (jmathies) wrote :

*** Bug 428382 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jmathies (jmathies) wrote :

The app picker has been in since 3.0. We have two open bugs related to implementing the functionality on OSX and Linux, this bug and bug 397699. Once we have possibleLocalHandlers implemented, the app picker should "just work".

Revision history for this message
In , GarthPS (garthps) wrote :

And does Fx will use by default the default application setting up in the desktop user like with xdg-open?

Revision history for this message
In , Jmathies (jmathies) wrote :

(In reply to comment #21)
> And does Fx will use by default the default application setting up in the
> desktop user like with xdg-open?

That may be a different bug. This bug is related to ease of use in choosing an alternative, non-default application. (In that we offer an alternative to the file picker dialog.) If there's a problem on Linux with Fx sending downloaded content to default handlers or if that functionality can be improved, we should spin off a different bug or (if applicable) re-open one of the dupes.

Revision history for this message
In , Jmathies (jmathies) wrote :

(In reply to comment #22)
> (In reply to comment #21)
> > And does Fx will use by default the default application setting up in the
> > desktop user like with xdg-open?
>
> That may be a different bug. This bug is related to ease of use in choosing an
> alternative, non-default application. (In that we offer an alternative to the
> file picker dialog.) If there's a problem on Linux with Fx sending downloaded
> content to default handlers or if that functionality can be improved, we should
> spin off a different bug or (if applicable) re-open one of the dupes.

(Also - this bug relates to choosing the default handler in prefs, as it's called up there too.)

Revision history for this message
In , GarthPS (garthps) wrote :

(The advantage of the implementation in my link is that it let the power-user to choose his local executable with an url.)

Ok I searched and did not find. So here is a new entry for the second part of my request an automaticaly call to default preferred user application [url=https://bugzilla.mozilla.org/show_bug.cgi?id=492276] bug 492276[/url]
(the first one was: choose file => choose application)

Changed in firefox-3.0 (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
In , Orion-cora (orion-cora) wrote :

*** Bug 464062 has been marked as a duplicate of this bug. ***

Mat Tomaszewski (mat.t.)
Changed in hundredpapercuts:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
sebek (sebeeek) wrote : Re: [MASTER] "Open With" dialog not user-friendly

I flagged some other launchpad as duplicate of the current one.

As reported in one of the duplicates (LP #232046) :

"""This can be smoothly resolved in the mean time if Firefox is shipped with different defaults, namely to have xdg-open available as an option for all file types (which I believe is possible) and to have every file type which is not to be viewed internally instead opened using /usr/bin/xdg-open.
If possible, have xdg-open named "Default application" or some such in Firefox, so that something like the download method dialog says "Open with [default application]". """

Because it has an easy solution and it will greatly ease general user experience, I agree with Mat that it should be promoted as the hundredpapercuts project.

I guess it can be done in the ubufox extension.

Changed in hundredpapercuts:
milestone: none → round-5
Revision history for this message
KillerKiwi (killerkiwi2005) wrote :

An extension that shows how to alter the open with dialogue
https://addons.mozilla.org/en-US/firefox/addon/8207

Revision history for this message
Fethi DILMI (addictcook) wrote :

I add this , when the open dialog is for seeking a type of files , it should show the extention of the needed file (the current one filters the files but it doesn't show the extention , which made the task somehow more difficult and boring)

Revision history for this message
Chris Bauer (cfbauer) wrote :

I'm not a programmer so I don't have anything productive to add to this discussion, I just want to say that this bug is important to me. I dread the moment when downloading a file in Firefox and the associated application I want to open with isn't in the drop down list. I've been using Ubuntu more than 2 years now and still have lots of trouble locating the application I want. It is a big problem for me, and likely for any non-programmer user who ever downloads files in Firefox.

Thanks everyone for your hard work.

-Chris

Revision history for this message
David Siegel (djsiegel-deactivatedaccount) wrote :

Patch looks good, but it's not trivial for us to apply it -- would require much testing, and, more importantly, upstream acceptance. Not a paper cut.

Changed in hundredpapercuts:
milestone: round-5 → none
status: Confirmed → Invalid
Revision history for this message
nonviking (eivind-throndsen) wrote : Re: [Bug 18995] Re: [MASTER] "Open With" dialog not user-friendly

David & others,

As the original reporter of this UX issue I have to say that this surprises
me.

If this is not a "trivially fixable usability bug that the average user
would encounter on his/her first day of using a brand new installation of
the latest version of Ubuntu Desktop Edition.", then nothing is.

It appers you are rejecting a perfectly valid fix to a significant usability
issue because of technicalities. That the patch may require work to apply,
some testing work and work to accept upstream are not in my opinion good
arguments to reject what is essentially a giant stumbling stone for the use
and acceptance of the biggest Open Source browser on Linux by non-geeks.

I'm disappointed by that.

Just my 2 cents.

Kind regards,
Eivind Throndsen

2009/8/7 David Siegel <email address hidden>

> Patch looks good, but it's not trivial for us to apply it -- would
> require much testing, and, more importantly, upstream acceptance. Not a
> paper cut.
>
> ** Changed in: hundredpapercuts
> Status: Confirmed => Invalid
>
> ** Changed in: hundredpapercuts
> Milestone: round-5 => None
>
> --
> [MASTER] "Open With" dialog not user-friendly
> https://bugs.launchpad.net/bugs/18995
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in The Mozilla Firefox Browser: Confirmed
> Status in One Hundred Paper Cuts: Invalid
> Status in “firefox-3.0” package in Ubuntu: Triaged
> Status in “mozilla-thunderbird” package in Ubuntu: Confirmed
>
> Bug description:
> When choosing to open a file in Firefox, an "Open With" dialog appears.
> You can choose to save the file or open it with a program from the list.
> However, if the desired program to open the file with is NOT listed, the
> user
> must navigate the filesystem to /usr/bin (or wherever) and select the
> appropriate program.
>
> A more user-friendly way would be to list all of the known programs
> installed
> that are available to open files with, and then have an "Other..." or
> "Advanced..." button for the user who would rather navigate the filesystem.
>

Revision history for this message
David Siegel (djsiegel-deactivatedaccount) wrote :

The bug is not being rejected. I pushed hard to get it through today,
but the upstream bug has been around for 4(?) years and we are blocking
on Mozilla on this one -- please express your disappointment in the
upstream bug report.

Revision history for this message
era (era) wrote : Re: [MASTER] "Open With" dialog not user-friendly

@David Siegel: For those of us arriving late, could you point to documentation which explains why adding the patch to the Ubuntu build is not an option? Upstream is solving a significantly harder problem, that is, implementing everything in a uniform way across diverse platforms. Ubuntu does not have that problem, and the available patch seems to solve the less general problem for Ubuntu quite nicely. (Haven't tried it, but see nothing to indicate the opposite.)

Revision history for this message
John Vivirito (gnomefreak) wrote : Re: [Bug 18995] Re: [MASTER] "Open With" dialog not user-friendly

On 08/08/2009 03:51 AM, era wrote:
> @David Siegel: For those of us arriving late, could you point to
> documentation which explains why adding the patch to the Ubuntu build is
> not an option? Upstream is solving a significantly harder problem, that
> is, implementing everything in a uniform way across diverse platforms.
> Ubuntu does not have that problem, and the available patch seems to
> solve the less general problem for Ubuntu quite nicely. (Haven't tried
> it, but see nothing to indicate the opposite.)
>
This is more than something that we want to patch. We dont patch
features we let upstream handle that since it is not a trivial.

Implementing a KDE solution is important since KDE users use Firefox
this is not something we should leave out. This is one big reason
why we have upstream apply feature changes to upstream code.
Its always best to keep patches to a minimum if possible.

if we apply that patch we will have to remove it once it is implemented.
Also there is more than one bug that uses the same code section, so
applying this one is not something they would like until the patch is
updated for all peices of code. This will be implemented for
Xulrunner-1.9.2 + Firefox-3.6 as it looks atm.

--
Sincerely Yours,
    John Vivirito

https://launchpad.net/~gnomefreak
https://wiki.ubuntu.com/JohnVivirito
Linux User# 414246

"How can i get lost, if i have no where to go"
    -- Metallica from Unforgiven III

Revision history for this message
dotancohen (dotancohen) wrote : Re: [MASTER] "Open With" dialog not user-friendly

I do not understand. Ubuntu has no problem patching Firefox [1] to show a Google search page, but cannot patch Firefox to use the proper Open With dialogue?

[1] http://ubuntuforums.org/showthread.php?t=1219501

Revision history for this message
Jan Claeys (janc) wrote :

@dotancohen:
I don't know all the details, but the default page in Firefox is simply a configuration option, not a patch that changes or replaces a significant amount of code. What (I think) the Ubuntu developers want is that the Mozilla/Firefox developers either include this into Firefox and/or provide a standard way to "plug in" different "open with" dialogs.

Revision history for this message
dotancohen (dotancohen) wrote :

> I don't know all the details, but the default page in Firefox is
> simply a configuration option

No, that configuration option was removed sometime in 2004:
https://bugzilla.mozilla.org/show_bug.cgi?id=269664

I agree that the patch should be applied upstream, however, that does not mean that Ubuntu cannot apply the patch to Firefox distributed with Ubuntu until the Mozilla folks get around to fixing the issue. The Mozilla public bugtracker is generally ignored in developing Mozilla products, especially in regards to new feature requests or non-crasher bugs. Very few new Firefox or Thunderbird features started off as Bugzilla RFEs, and very rarely does an RFE or non-crasher / non-security bug get fixed. We will be waiting a long time to see the fix implemented in Firefox, if ever.

If this were a Zim or KDE bug, I would agree that waiting for upstream to apply the patch would be reasonable. But Mozilla? Nobody with experience filing bugs on Mozilla products would hold their breath waiting for Mozilla to fix a non-crasher / non-security bug. In Mozilla's defence, security issues are dealt with _fast_ and I give them all the credit in the world for their dedication to keeping the browser secure.

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote :

There is no way to fix this bug with a firefox extension ? There is already some extensions which modify the way to open a file (as said KillerKiwi).

This is a very important issue for the desktop usability.

Basically, what do we need ? What is the command to call with the downloaded file as argument ?

Revision history for this message
era (era) wrote : Re: [Bug 18995] Re: [MASTER] "Open With" dialog not user-friendly

On Mon, 10 Aug 2009 06:51 +0000, "dotancohen" <email address hidden>
wrote:
> > I don't know all the details, but the default page in Firefox is
> > simply a configuration option
>
> No, that configuration option was removed sometime in 2004:
> https://bugzilla.mozilla.org/show_bug.cgi?id=269664

Technically, Multisearch is implemented as an extension. You can
disable it if you like. But this is a straw man; if you want to argue
about a different bug, please don't do that here.

I was hoping somebody from the Ubuntu Mozilla team would weigh in with a
proper explanation of why the Firefox core cannot be patched, and under
what circumstances -- if any -- this policy can be deviated from. But
maybe that's a different bug, too. LP #411306

Revision history for this message
Coren (coren+) wrote : Re: [MASTER] "Open With" dialog not user-friendly

@ktulu77 : As you can see in my patch, the command to call is "xdg-open". It provides a unified way to open a file from the 3 major Desktop Environments (Gnome, KDE, XFCE). I hope to have the time to put it in an extension, it would make it more maintenable since Mozilla & Ubuntu do not agree on how to fix this issue.

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote :

@Coren : Ok thank you. If I have some time, I will try to make a firefox extension but I have never done that before.

I have a question, with xdg-open, it opens the file with the default system app. But, if we want to open it with another app, is it possible to display the Gnome UI "Open With" ?

For example, on the firefox "open with" window, we could have :

 * Save As ...
 * Open with default application (xdg-open)
 * Open with another application (??? -> opens Gnome Open With dialog, or Desktop environment Open With dialog if possible)
Of course, the checkbox "Do that automatically next time" would remain the same.

Revision history for this message
Coren (coren+) wrote :

@ktulu : That's not really possible, ATM, because there's no cross-linux desktop API to make things like this. It would requires firefox to be linked to Gnome, KDE and others desktops' libs. That strikes in front the policy of being a cross-platform browser : it's clearly not an option for Firefox.

That's probably why they have implemented their own, in Firefox 3. Maybe it was a good idea, but the result clearly sucks, with Kde users forced to go in "/usr/bin/" in order to open a file. From a Linux integrator point of view, it has REALLY complicated the work to do.

BTW, the "open with" thing is more for power user (20 %). I don't know for you, but people around me are used to double clic on a file to open it, not right clic -> Open With. I was told Ubuntu was for normal user (80 %), those who do not even understand what a software or a file is, who see computer like an advanced Mp3 Player, but maybe it was just a rumor...

Revision history for this message
John Vivirito (gnomefreak) wrote : Re: [Bug 18995] Re: [MASTER] "Open With" dialog not user-friendly

On 08/10/2009 05:32 AM, Coren wrote:
> @ktulu77 : As you can see in my patch, the command to call is "xdg-
> open". It provides a unified way to open a file from the 3 major Desktop
> Environments (Gnome, KDE, XFCE). I hope to have the time to put it in an
> extension, it would make it more maintenable since Mozilla & Ubuntu do
> not agree on how to fix this issue.
>
I have already explained this. it is a major hunk of code that needs to
be modified please see both upstream bugs i have pointed out for more info.

--
Sincerely Yours,
    John Vivirito

https://launchpad.net/~gnomefreak
https://wiki.ubuntu.com/JohnVivirito
Linux User# 414246

"How can i get lost, if i have no where to go"
    -- Metallica from Unforgiven III

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote : Re: [MASTER] "Open With" dialog not user-friendly

@Coren > If it is not possible, what is the goal of this bug ? I understood the problem was the open with dialog which is not user friendly when we want to choose the app we want to use to open the file.

If there is no cross-linux desktop API, then perhaps we can cheat and detect the desktop environment with the extension, or perhaps, make it configurable in the addon configuration window.

The point is mozilla is not going to resolve this problem until a lot of time, so instead of waiting for that, we could create a quick and dirty fix with a firefox addon.

@John Vivirito > Sorry, but this bug is huge and it is difficult to see the main informations. Perhaps a blueprint would be better ?

Revision history for this message
nonviking (eivind-throndsen) wrote : Re: [Bug 18995] Re: [MASTER] "Open With" dialog not user-friendly

Hi all

Are you aware of freedesktop.org and specifically the Portland subproject?
It's a joint GNOME/KDE project to promote better application desktop
integration and seems to have a fairly good momentum.

http://portland.freedesktop.org/wiki/
http://portland.freedesktop.org/xdg-utils-1.0/xdg-mime.html
http://portland.freedesktop.org/xdg-utils-1.0/xdg-open.html

Kind regards,
Eivind

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote : Re: [MASTER] "Open With" dialog not user-friendly

Coren and me were talking about a command-line to open the desktop "open with" dialog. xdg-open just opens the file with the default application. We need a command-line which open the "open with" dialog, to be able to choose the application we want to use.

Revision history for this message
dotancohen (dotancohen) wrote :

> But this is a straw man; if you want to argue
> about a different bug, please don't do that here.

I was giving an example of inconsistent decisions. I really do not care about that other bug.

> If there is no cross-linux desktop API, then perhaps we can cheat
> and detect the desktop environment with the extension, or perhaps,
> make it configurable in the addon configuration window.

There is, xdg-open is made just for this.

> I have a question, with xdg-open, it opens the file with the default system app. But, if
> we want to open it with another app, is it possible to display the Gnome UI "Open With" ?

That is bug #232046:
https://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+bug/232046
It was marked as a dupe of this bug.

Revision history for this message
John Vivirito (gnomefreak) wrote : Re: [Bug 18995] Re: [MASTER] "Open With" dialog not user-friendly

On 08/10/2009 08:41 AM, ktulu77 wrote:
> @Coren > If it is not possible, what is the goal of this bug ? I
> understood the problem was the open with dialog which is not user
> friendly when we want to choose the app we want to use to open the file.
>
> If there is no cross-linux desktop API, then perhaps we can cheat and
> detect the desktop environment with the extension, or perhaps, make it
> configurable in the addon configuration window.
>
> The point is mozilla is not going to resolve this problem until a lot of
> time, so instead of waiting for that, we could create a quick and dirty
> fix with a firefox addon.
>
> @John Vivirito > Sorry, but this bug is huge and it is difficult to see
> the main informations. Perhaps a blueprint would be better ?
>
This bug is huge does not really mean anything to everyone, This bug is
something people want fixed would be better.
Now as i have explained this bug is a major code change and that is why
upstream is applying it. This is not a "Show stopper" it is a feature
request. Upstream has alot of work to do until it can be added.
As i recall someone asked for this to block xulrunner 1.9.2
(firefox-3.6) We are a long way before that will be stable so they have
time. There is a hacked patched attached to one of the bugs upstream.
Hacked patches are not something we will add either way. once a final
patch is in place we will have it in our build (3.6 or later) this will
not be added to anything <3.6 more than likely since it is such a
massive change.
For more info please see upstream bugs.

--
Sincerely Yours,
    John Vivirito

https://launchpad.net/~gnomefreak
https://wiki.ubuntu.com/JohnVivirito
Linux User# 414246

"How can i get lost, if i have no where to go"
    -- Metallica from Unforgiven III

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote : Re: [MASTER] "Open With" dialog not user-friendly

Sorry for my bad english, I wanted to say that there is a lot of messages here and it is difficult to see the important informations.

I understand this can be a hard work to be fixed upstream. I was thinking, as Coren said, that we could do a small firefox addon, while this bug is being fixed by mozilla.

The open with dialog I was speaking about is shown on the image I have attached with this comment. I don't think we can open it with freedesktop commands like xdg. A better window would be the tab "open with" on the properties dialog of a file, but it seems more complicated to implement ...

Anyway, if you think we cannot do a workaround with a firefox addon, I give up. I don't know how to do it anyway.

Revision history for this message
PomCompot (pomme-compote-launchpad) wrote :

@ktulu77 : From where di you get this 'Open with' dialog with two tabs 'Installed applications' and 'Available applications'? Is it in the Karmik alpha? I personaly doesn't have such a dialog.

I'm new on this bug, but wondering technically what prevent an extension from replacing the 'Open with' dialog. I mean, could be straight use the default dialog of gnome or is there a need of specific XUL dev? Far over, I know this is not such trivial as my comment could let think.

Revision history for this message
Rthaduthd Anthnhkrc (nthnuekeu-deactivatedaccount) wrote : Re: [Bug 18995] Re: [MASTER] "Open With" dialog not user-friendly

On Mon, Aug 10, 2009 at 5:11 PM, PomCompot <<email address hidden>
> wrote:

> @ktulu77 : From where di you get this 'Open with' dialog with two tabs
> 'Installed applications' and 'Available applications'?

It's part of the standard Gnome desktop as far as I know:

* In Nautilus, right click and select 'Open With'.
* Select 'Open With Other Application'.

--
Lars Rune Nøstdal
http://nostdal.org/

Revision history for this message
John Vivirito (gnomefreak) wrote :

On 08/10/2009 11:11 AM, PomCompot wrote:
> @ktulu77 : From where di you get this 'Open with' dialog with two tabs
> 'Installed applications' and 'Available applications'? Is it in the
> Karmik alpha? I personaly doesn't have such a dialog.
>
> I'm new on this bug, but wondering technically what prevent an extension
> from replacing the 'Open with' dialog. I mean, could be straight use the
> default dialog of gnome or is there a need of specific XUL dev? Far
> over, I know this is not such trivial as my comment could let think.
>
If someone wants to take the time to build an .xpi of an extension feel
free however the Ubuntu-mozillateam has alot more to work on that are
more important than a new extension. If you submit an extension here we
will be glad to review it and add it somewhere if not in repos. We would
love an ETA on upstream fix but we can not get that at this stage due to
the code changes that need to be made.
I dont want to add an extension to repos if this will be fixed by
release in Karmic

--
Sincerely Yours,
    John Vivirito

https://launchpad.net/~gnomefreak
https://wiki.ubuntu.com/JohnVivirito
Linux User# 414246

"How can i get lost, if i have no where to go"
    -- Metallica from Unforgiven III

Revision history for this message
PomCompot (pomme-compote-launchpad) wrote : Re: [MASTER] "Open With" dialog not user-friendly

Have found this thread on MarkMail speaking of the exactly same problem with another point of view (extracting the 'Open with' dialog from the libnautilus to be usable elsewhere).

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote :

I am on Debian Lenny and Nautilus 2.20. Just right click on a file, and go to "open with ..." > "Open with another application".

I have just noticed that in the tab "available applications", I have listed just the applications which can open the file. For example, on a PDF file, I have KPDF, KGhostView, ... (See attachment)

It seems to be exactly the dialog we need, but with this tab opened by default, not the one with all the installed applications.

It seems that this dialog cannot be opened with the freedesktop project. I'll be happy if i'm wrong.

Vish (vish)
affects: hundredpapercuts → null
Revision history for this message
Micah Gersten (micahg) wrote :

Moving tracking to Firefox 3.5.

Changed in firefox-3.5 (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Micah Gersten (micahg) wrote :

Firefox 3.0 is only receiving Security Updates and major bug fixes at this point.

Changed in firefox-3.0 (Ubuntu):
status: Triaged → Won't Fix
Revision history for this message
PomCompot (pomme-compote-launchpad) wrote :

@ktulu77 :
I have forgotten the MarkMail URL in my previous post: http://markmail.org/message/mcarb3i4gg5hcvm3#query:+page:1+mid:qxaeqv22o3pkzgvx+state:results.

On Nautilus 2.26.2, on Jaunty, I don't have the two tabs. Strange.

You will not be happy, because you're right. First, the freedesktop project doesn't provide (yet?) a dialog for 'Open with'. Second, the 'Open with' dialog is hardwired in Nautilus and could not easily be extracted. The native 'Open with' dialog from a Firefox extension seems then to be a harsh part.

About xdg-open, I don't understand the benefit of that compared to the existing code. When you download a type of file from Firefox that you have never open yet, it already automatically proposes, in the dropdown list 'Open with', the associated system application. What the use of this patch with xdg-open in this case because it seems the function is already here?

Revision history for this message
Coren (coren+) wrote :

@PomCompot : The function is already there under Gnome, with "firefox-3.0-gnome-support" package. But it do not inherit preferences from the desktop and it do not work for other Desktop Environment.

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote :

@PomCompot > Ok thank your for your response. You are right, if I modify in Nautilus the application which opens a PDF file for example, Firefox will use this application to open PDF files by default (unless I have configured firefox to open it with another application).

So Firefox already uses xdg-open by default. The thing we need is the Nautilus (or desktop environment) dialog to choose the application because the firefox one is not userfriendly.

If this dialog is hardwired in Nautilus, I don't think we can do something easily with a plugin to fix this. It would be even better if this function is supported by the freedesktop project.

Revision history for this message
PomCompot (pomme-compote-launchpad) wrote :

@Coren: Thanks Coren, it makes things clearer. Your patch is then needed (solving a first problem, without solving the 'Open with' one, but it's better than nothing).

@ktulu77: In the Gmome mailing list (MarkMail) I referenced, there are two points of view :
- extraction from Nautilus and integration in GTK,
- keep in Nautilus with a DBus functionality to access it from other apps.

I'll try to summarize some points of the MarkMail conversation. It seems that some applications have already developed their own native 'Open with' clone dialog or something approaching (EOG, gThumb with context menu listing). Evince, Epiphany seems also waiting for such a solution. Thunar has already made something available to external apps through DBus.

This conversation seems to have ended on May 2008 and not being alive since. Would be interesting contacting authors to know if they have made some developments on this.

The point is that we have 3 places talking of the same problem : this Launchpad bug report specifically targeting Firefox (and Thunderbird), the Firefox Bugzilla bug report and the Gnome mailing list. The problem is clearly beyond Firefox, even though it is affected and must be corrected. Every application could expect to have an easy access to an 'Open with' applications listing through a GUI (GTK component) or a returned applications list.

In my opinion, it's something common to all desktop environments and though could be a FreeDesktop specification.

The correction of this bug in the one hundred paper cuts seems unreachable if it involves modification of the GTK lib or/and the creation and the implementation of a FreeDesktop spec, but we could at least found an agreement on the way to reach such a solution.

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote :

Yes I think it is unreachable for the one hundred paper cuts project.

This bug is clearer for me now. A freedesktop spec would be great.

There is several solutions :

* a spec to open an "open with" dialog, according to a mime type
* a spec to get informations about applications that can open a mime type. Then an application could display these applications the way it wants.

See the manual of xdg-mime, this command could be extended to have such informations for points 2.

I think this could resolve our problems. On first comment on this bug :

"A more user-friendly way would be to list all of the known programs installed
that are available to open files with" -> Second point
"Other..." or "Advanced... button" -> First point

Revision history for this message
PomCompot (pomme-compote-launchpad) wrote :

This subject has, of course, already been talked on FreeDesktop. No exactly from this point of view, but for setting up a consensus on the best way to conceive the MIME database. It seems that Gnome and KDE have both common and specific ways of handling that. I will not enter in the details because I don't want to make technical mistakes.

Speaking for Gnome (taken from http://lists.freedesktop.org/archives/xdg/2008-January/009111.html), each folder which contain .desktop files, also maintains two other files : defaults.list which list default associations, and mimeinfo.cache which list all applications link to a MIME type. You find examples in /usr/share/applications/. You find also a defaults.list file in /etc/gnome/. Those file are system level settings. Then, there is the MIME database which is well described here: http://library.gnome.org/admin/system-admin-guide/stable/mimetypes-database.html.en.

xdg-mime could have a new parameter to retrieve all registered applications for a MIME type. The <email address hidden> seems to be the best place for talking about that.

There are 4 (or 5) complementary steps to provide a consistent experience to the user:
- 1: call xdg-open or xdg-mime to get the default registered application,
- 2: call (a non existing) xdg-mime list to get all registered applications for a MIME type for a short listing of available applications,
- 3: find another way to get all the application with .desktop files installed on the computer for a complete listing of available applications,
(- 4 (optional): get relevant applications available from synaptic for this task (would be great but difficult),)
- 5: in an advanced mode, propose a field to enter an application path (could be a way for preferably access the paths stored in the $PATH variable.

Would be great to have here the knowledge of concerned people, I mean, Gnome dev and FreeDesktop active subscribers on the subject. This is highly too much technical to be embraced so simply.

Revision history for this message
In , Pomme-compote-bugzillamozilla (pomme-compote-bugzillamozilla) wrote :

(In reply to comment #14)
> Plus it is trivial to list all available application by using freedesktop specification.
> [...]
> Or yeah use xdg-open!!!
> http://portland.freedesktop.org/xdg-utils-1.0/xdg-open.html

Whereas there is a FreeDesktop specification to retrieve the default application for a MIME type (xdg-open is one of the result), there is no FreeDesktop specification to retrieve the list of all registered applications for a MIME type (xdg-mime doesn't do that if you look at the man).

Considering the archives on <email address hidden>, you'll see that there is no consensus on this, particularly on the way to deal with priorities of one application above the others (the preferred order of applications to handle a MIME type if you prefer).

I send you to http://lists.freedesktop.org/archives/xdg/2008-January/thread.html and the thread titled 'Default Program | File Association' to see what I mean (followed in February). I also send you to the FreeDesktop specifications page to see that there is nothing on this in current drafts: http://www.freedesktop.org/wiki/Specifications/. Don't hesitate to correct me if I'm wrong.

To be clear, I'm not saying this bug could not be solved, I'm saying it could not easily be done in a cross desktop way until there is no FreeDesktop consensus on this point.

Revision history for this message
In , Mozilla-bugs-2010-04 (mozilla-bugs-2010-04) wrote :

If there is no freedesktop.org spec for calling the Open With... dialogue, then call the Gnome dialogue as default with an about:config option to use the KDE or other dialogue instead.

Revision history for this message
In , Pomme-compote-bugzillamozilla (pomme-compote-bugzillamozilla) wrote :

(In reply to comment #27)
> If there is no freedesktop.org spec for calling the Open With... dialogue, then
> call the Gnome dialogue as default with an about:config option to use the KDE
> or other dialogue instead.

Whereas there is such a dialog in KDE (KOpenWithDialog), there is no such thing yet in Gnome. The 'Open with…' dialog is hardwired in Nautilus (libnautilus). It's why it's not so simple.

The other problem is that you cannot wish that Firefox has a different behavior in Gnome and in KDE. There is a Linux packaging, not a Desktop packaging.

A possible way would be to put in firefox-gnome-support, and the equivalent for KDE, until there is a FreeDesktop spec, but it's no more upstream in this case.

Revision history for this message
In , clemens (clemens-endorphin) wrote :

I do not get at all what the discussion is about. We have support for finding the handler for an app at the moment using the gvfs interface. Just extend that interface to work with multiple applications and pipe the result into the app chooser. I posted how we could do that. There might be no standard, but why care? If there will be a standard it is most likley that it will go into the gvfs interface, so we do not even have to update the code after a proper standard has been established.

Revision history for this message
In , Pomme-compote-bugzillamozilla (pomme-compote-bugzillamozilla) wrote :

(In reply to comment #29)
> I do not get at all what the discussion is about. We have support for finding
> the handler for an app at the moment using the gvfs interface. Just extend that
> interface to work with multiple applications and pipe the result into the app
> chooser. I posted how we could do that. There might be no standard, but why
> care? If there will be a standard it is most likley that it will go into the
> gvfs interface, so we do not even have to update the code after a proper
> standard has been established.

You're right. We need a solution and cannot wait for standardization. But, this does not prevent us to plan for what must be realized on this subject from a short to longer term.

A quick solution:
-----------------
Develop specific and separate 'Open with…' implementation for Firefox for GTK desktops (Gnome & XFCE) and Qt ones (KDE).

The way to do this, for GTK, is as you said Clemens to use the Gnome library. GnomeVFS is now deprecated and GIO must be preferred. But we find the same methods (http://library.gnome.org/devel/gio/stable/GAppInfo.html#g-app-info-get-all) and your code could easily adapted.

The cons is that we have different implementations for Gnome/XFCE and KDE. Does Firefox can handle that, technically and formally? If not, those dev cannot be done upstream and must be made on firefox-gnome-support for instance.

The other con is that it will duplicate the code to produce an 'Open with…' dialog. Indeed, this code is already present in Nautilus. But this duplication is already done in existing Gnome apps.

The medium term plan:
------------------------

It would be great if Gnome dev, and specifically Nautilus ones, could extract the 'Open with…' code from Nautilus to be used externally. Good for Firefox and for all other application that need this code. Some talks about this here:http://markmail.org/message/mcarb3i4gg5hcvm3#query:+page:1+mid:qxaeqv22o3pkzgvx+state:results.

The long term plan:
-------------------

A FreeDesktop specification, standardizing the way to get the list of all applications registered for a mime-type and to open an 'Open with…' dialog would greatly simplify the work. An evolution of xdg-mime to get that list and not only the default application like now could be a way.

What do you think about this?

Revision history for this message
In , Kairo-kairo (kairo-kairo) wrote :

I do not understand why people are bringing up GNOME vs. KDE again and again here. We do support only GNOME at this time, and we're trying to use freedesktop where possible. There is no KDE support yet in Mozilla apps, and as much as I'd like to have it, we should not concern us with supporting something when the base for it isn't supported.
If it's easily enough possible, let's support the GNOME way now, and let's care about freedesktop when it has something for it, and about KDE integration once we have any base work for it in Mozilla code (this is not the bug for doing that base work).

Revision history for this message
In , Pomme-compote-bugzillamozilla (pomme-compote-bugzillamozilla) wrote :

I agree that we have first to correct the bug for Gnome. But this is not simply supporting or not KDE. I explain myself.

First point, the bug report is about Linux in general. Final users don't care if Firefox has only Gnome support, they want something that works under Linux cause there is a Linux build. It brings me to my second point.

We need to know if it's technically possible to distinguish the desktop the user is using. If something for Gnome is made, it could simply break this dialog under KDE if we can't detect the desktop environment. Indeed, if we call the Gnome API (GIO) in this case, it is not intended to be embedded in KDE, and this call will simply fail and break the dialog. It's not acceptable.

So can we detect easily in Firefox the desktop environment of the user to set a correction for Gnome in a first time that doesn't break KDE?

Revision history for this message
In , Kairo-kairo (kairo-kairo) wrote :

(In reply to comment #32)
> So can we detect easily in Firefox the desktop environment of the user to set a
> correction for Gnome in a first time that doesn't break KDE?

No, and we don't want to and don't need to. We call the GTK file and print dialogs, we're using GNOME stuff in multiple places, we are using theming from GTK, we don't do anything to even care if KDE is there or not, and the solution for this bug should also just ignore the fact. We don't run without GNOME libraries in any case, and there are no immediate plans to change that.

Revision history for this message
In , Pomme-compote-bugzillamozilla (pomme-compote-bugzillamozilla) wrote :

Ok. Thanks for this clarification.

Revision history for this message
In , Coren (coren42) wrote :

Note : The bug Robert Kaiser is speaking of seems to be bug 140751

Revision history for this message
In , Pomme-compote-bugzillamozilla (pomme-compote-bugzillamozilla) wrote :

Robert Kaiser (In reply to comment #35)
> Note : The bug Robert Kaiser is speaking of seems to be bug 140751

Yes, already seen that and also this thread on Launchpad : https://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+bug/220798 speaking of a malfunction of the applications preference tabs under KDE without the firefox-gnome-support package installed. It is why I care about that sort of thing. But, Robert Kaiser pointed that it is not the priority, so it's ok. One thing at a time.

Revision history for this message
In , Kairo-kairo (kairo-kairo) wrote :

Note that I'm a big KDE fan and user myself, but we need to stick with the way of things we have at Mozilla right now, and it's better to get one solution right (in Mozilla terms this needs to be the GNOME/GTK one) and only then work on improving it for others (like KDE) as well, in a new bug, and that might need some more general support code on a higher level than download file handling as well - but that's something to look at in a followup bug.

Let's first work constructively to come up with a solution on the GNOME/GTK terms Mozilla is already bound to (esp. as we already know that a really generic solution isn't possible at this moment, this is the next best thing for now).

Revision history for this message
In , Mozilla-bugs-2010-04 (mozilla-bugs-2010-04) wrote :

Even as a KDE user, I agree that Firefox should code the support for Gnome. Firefox ignores everything KDE at the moment (such as File Chooser dialogues) and this is expected. Yes, it is annoying, but it is expected.

Revision history for this message
In , Pomme-compote-bugzillamozilla (pomme-compote-bugzillamozilla) wrote :

I'm also convince of this. I'm perfectly agree with you. I'm just quite new on this and I'm asking to get a clear view of the impacts of such a dev. It's know clear for me that we deal before with Gnome, will see in the future for KDE. A unified FreedDesktop spec would be a good way to alleviate the port of code from one to the other, but it's another debate.

New question now. About look-and-feel of this application selector dialog. Does it must stick with the native Gnome (or Nautilus in this case (attachment hereunder)) look-and-feel or does it must follow the Mozilla guidelines (https://wiki.mozilla.org/ContentHandling:User_Interface/Proposed_UI2) and what has made Jim Mathies on the subject for Windows (https://bug348808.bugzilla.mozilla.org/attachment.cgi?id=271748)?

Revision history for this message
In , Pomme-compote-bugzillamozilla (pomme-compote-bugzillamozilla) wrote :

Created attachment 394231
Nautilus 'open with…' dialog screenshot (french UI)

Revision history for this message
In , Hubert Figuiere (hub) wrote :

(In reply to comment #40)
> Created an attachment (id=394231) [details]
> Nautilus 'open with…' dialog screenshot (french UI)

Which is what the patch in attachment 314945 from bug 428382 (dupe of this one now) was implementing.

Revision history for this message
In , Kairo-kairo (kairo-kairo) wrote :

(In reply to comment #39)
> New question now. About look-and-feel of this application selector dialog.

I think we'd need the input of the Mozilla UI team for a firm decision on that (though I expect them to prefer not creating a Linux-specific dialog).
What we can do without them is getting the backend right to get the information we want from GNOME and feed it to the interfaces that are already there from all I know.
And I think that's what we should stick to in this bug, any UI change following this or extending functionality e.g. to get info from elsewhere should be in followup bugs.

Revision history for this message
Przemek K. (azrael) wrote :
Revision history for this message
In , Murali-nandigama (murali-nandigama) wrote :

You have a patch on this bug that is flagged for 'review?' and not assigned to any reviewer. If you want the patch to be reviewed please assign a reviewer. Thanks

Revision history for this message
In , Ehsan-mozilla (ehsan-mozilla) wrote :

Comment on attachment 373282
Removes file association mechanism of firefox and use xdg-open instead

I think Shawn is a better reviewer for this patch.

Revision history for this message
In , Shawn Wilsher (sdwilsh) wrote :

Comment on attachment 373282
Removes file association mechanism of firefox and use xdg-open instead

This wouldn't work on anything but linux but it's a cross platform file

Revision history for this message
In , Coren (coren42) wrote :

Shawn : making it cross platform is not really difficult, since it's a tiny patch. What do you think of this approach ? If I make this patch cross-platform, would you integrate it ?

Revision history for this message
caberg (caberg-408) wrote :

Do you think it's fixed in the next release of ubuntu with firefox 3.6?

Now the opensuse project have a solutions for kde4
http://en.opensuse.org/KDE/FirefoxIntegration
http://www.youtube.com/watch?v=Pyp5bX_NV6k

Revision history for this message
Coren (coren+) wrote : Re: [Bug 18995] Re: [MASTER] "Open With" dialog not user-friendly

caberg a écrit :
> Do you think it's fixed in the next release of ubuntu with firefox
> 3.6?
>
> Now the opensuse project have a solutions for kde4
> http://en.opensuse.org/KDE/FirefoxIntegration
> http://www.youtube.com/watch?v=Pyp5bX_NV6k
>
It has begun to be integrated into Kubuntu, thanks to Anthony
Mercatante. It should be much better.

Regards,

--
Loiseleur Michel
Responsable de l'OSSA
Linagora / 27, rue de Berri / 75008 PARIS
Tel/Fax : 01 58 18 68 28 / 01 58 18 68 29
http://www.08000linux.com/ | http://www.tosca-project.net
"Ce n'est pas le logiciel qui est libre, c'est vous"

Revision history for this message
dotancohen (dotancohen) wrote : Re: [MASTER] "Open With" dialog not user-friendly

Note that other GTK applications, such as OpenOffice.org, currently use the KDE file chooser dialogues in KDE as of Karmic.

Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

@dotancohen:
OpenOffice.org is not a GTK+ application, and no, GTK+ applications do not use the KDE file chooser in Karmic. OpenOffice.org got its own port of the file chooser and Qt-based styling.

Revision history for this message
dotancohen (dotancohen) wrote :

I have checked and you are right, Yuriy. OOo is not a GTK application. I apologize for the misinformation.

Revision history for this message
caberg (caberg-408) wrote :

@coren

 Good it will be excellent if the integrated for Ubuntu(Gnome) to!

David Futcher (bobbo)
tags: added: patch-forwarded-upstream
Micah Gersten (micahg)
Changed in firefox (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Changed in firefox:
importance: Unknown → Medium
Changed in firefox-3.5 (Ubuntu):
status: Triaged → Confirmed
Changed in hundredpapercuts:
status: New → Confirmed
Revision history for this message
nubuntu17 (vnaren-karlapalem) wrote :

Okay..its 10th May 2011 and I am running 10.04 Kubuntu on amd64 laptop...been facing this problem lately ....really half a decade to fix this bug?...really wow. I've been using (K)Ubuntu from intrepid days....and this bug appears all of a sudden and I had to reinstall(like many others) the whole OS just because this bug still exists.....reinstalling FF doesn't help either...c'mon guys we love firefox...fix this damn bug Gurus....don't push us over to chrome...plzzz

cheers!!
Venky

Revision history for this message
Timothy Arceri (t-fridey) wrote :

It looks to me like the issue here is that the Mozilla team in the past was unwilling to implement anything that wasn't cross platform. I haven't worked with GTK myself but it looks like the new version 3.0 contains features that may just finally resolve this issue.

See: http://developer.gnome.org/gtk3/3.0/GtkAppChooser.html

and

http://developer.gnome.org/gtk3/3.0/GtkAppChooserDialog.html

Now the problem is convincing the Mozilla to upgrade to the new API (I would expect this to be the big challenge here) and use this new feature.

Revision history for this message
nonviking (eivind-throndsen) wrote : Re: [Bug 18995] Re: [MASTER] "Open With" dialog not user-friendly

Timothy,

Thanks for the concern. I've moved on from this issue, but good luck to
anyone trying to resolve it.

Chrome solves my needs AND opens PDFs out of the box on all the platforms I
am interested in.

kind regards
Eivind Throndsen

2011/7/27 Timothy Fridey <email address hidden>

> It looks to me like the issue here is that the Mozilla team in the past
> was unwilling to implement anything that wasn't cross platform. I
> haven't worked with GTK myself but it looks like the new version 3.0
> contains features that may just finally resolve this issue.
>
> See: http://developer.gnome.org/gtk3/3.0/GtkAppChooser.html
>
> and
>
> http://developer.gnome.org/gtk3/3.0/GtkAppChooserDialog.html
>
> Now the problem is convincing the Mozilla to upgrade to the new API (I
> would expect this to be the big challenge here) and use this new
> feature.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (232046).
> https://bugs.launchpad.net/bugs/18995
>
> Title:
> [MASTER] "Open With" dialog not user-friendly
>
> Status in The Mozilla Firefox Browser:
> Confirmed
> Status in One Hundred Paper Cuts:
> Confirmed
> Status in NULL Project:
> Invalid
> Status in “firefox” package in Ubuntu:
> Triaged
> Status in “firefox-3.0” package in Ubuntu:
> Won't Fix
> Status in “firefox-3.5” package in Ubuntu:
> Confirmed
> Status in “mozilla-thunderbird” package in Ubuntu:
> Confirmed
>
> Bug description:
> When choosing to open a file in Firefox, an "Open With" dialog appears.
> You can choose to save the file or open it with a program from the list.
> However, if the desired program to open the file with is NOT listed, the
> user
> must navigate the filesystem to /usr/bin (or wherever) and select the
> appropriate program.
>
> A more user-friendly way would be to list all of the known programs
> installed
> that are available to open files with, and then have an "Other..." or
> "Advanced..." button for the user who would rather navigate the
> filesystem.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/firefox/+bug/18995/+subscriptions
>

Revision history for this message
In , Timothy Arceri (t-fridey) wrote :

It seems this issue can be resolved using new features introduced in GTK 3.0

See: http://developer.gnome.org/gtk3/3.0/GtkAppChooser.html

and

http://developer.gnome.org/gtk3/3.0/GtkAppChooserDialog.html

The obvious first step that needs to be taken in the migration to GTK 3.0

Revision history for this message
In , Chris Coulson (chrisccoulson) wrote :

This doesn't depend on GTK 3.0. The API's to get this information from the platform have existed already for a long time.

Is anyone interested in taking this? I'd like to get it fixed, so will take it if nobody steps up

Revision history for this message
In , Timothy Arceri (t-fridey) wrote :

There are bugs relating to this that dating back to 2004 I don’t think you will be treading on any toes by taking it up.

As you can see by the previous posts the issue here has been finding a way to implement this so that it can be cross platform. What are the API's you are purposing to use to implement a solution?

Revision history for this message
In , Ventnor-bugzilla (ventnor-bugzilla) wrote :

(In reply to comment #48)
> This doesn't depend on GTK 3.0. The API's to get this information from the
> platform have existed already for a long time.

There are API's to get this information, yes, but GTK3 comes with an application selector dialog which would make fixing this bug much easier.

Revision history for this message
In , Timothy Arceri (t-fridey) wrote :

I would have to agree with Michael, using the supplied GTK3 dialog is a good long term fix, it will require little maintenance once implemented, and will present the user with a consistent dialog across the desktop once other applications start to implement this generic application selector.

Revision history for this message
In , Timothy Arceri (t-fridey) wrote :

*** Bug 56662 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mozilla-bugs-2011-08 (mozilla-bugs-2011-08) wrote :

Note that one of the dupes, (bug #56662) was filed in October 2000, and has had an unreviewed patch since August 2009. See patch details here:
https://bugs.launchpad.net/firefox/+bug/18995

Revision history for this message
In , Mozilla-bugs-2011-08 (mozilla-bugs-2011-08) wrote :
Curtis Hovey (sinzui)
no longer affects: null
Revision history for this message
In , Karlt (karlt) wrote :

*** Bug 693318 has been marked as a duplicate of this bug. ***

Revision history for this message
In , cameleon (el-cameleon-1) wrote :

*** Bug 535634 has been marked as a duplicate of this bug. ***

Changed in hundredpapercuts:
milestone: none → quantal-9-internet
Revision history for this message
Chris Wilson (notgary-deactivatedaccount) wrote : Re: [MASTER] "Open With" dialog not user-friendly

It seems that any fix for this would require a significant investment of time from someone with significant technical knowledge - not really papercut material.

Changed in hundredpapercuts:
status: Confirmed → Invalid
milestone: quantal-9-internet → none
Revision history for this message
Timothy Arceri (t-fridey) wrote :

This is an easy fix once the firefox port to gtk3 is finished (its currently making good progress). Reconfirming as a papercut.

Changed in hundredpapercuts:
status: Invalid → Triaged
Revision history for this message
Mozaic (mozaic) wrote :
Revision history for this message
Chris Wilson (notgary-deactivatedaccount) wrote : Re: [Bug 18995] Re: [MASTER] "Open With" dialog not user-friendly

Is there an ETA on the port? Is it worth targeting to 12.10 or will it take
longer than that?

On 15 June 2012 09:47, Timothy Arceri <email address hidden> wrote:

> This is an easy fix once the firefox port to gtk3 is finished (its
> currently making good progress). Reconfirming as a papercut.
>
> ** Changed in: hundredpapercuts
> Status: Invalid => Triaged
>
> --
> You received this bug notification because you are subscribed to One
> Hundred Paper Cuts.
> Matching subscriptions: Papercut bug mail
> https://bugs.launchpad.net/bugs/18995
>
> Title:
> [MASTER] "Open With" dialog not user-friendly
>
> Status in The Mozilla Firefox Browser:
> Confirmed
> Status in One Hundred Paper Cuts:
> Triaged
> Status in “firefox” package in Ubuntu:
> Triaged
> Status in “firefox-3.0” package in Ubuntu:
> Won't Fix
> Status in “firefox-3.5” package in Ubuntu:
> Confirmed
> Status in “mozilla-thunderbird” package in Ubuntu:
> Confirmed
>
> Bug description:
> When choosing to open a file in Firefox, an "Open With" dialog appears.
> You can choose to save the file or open it with a program from the list.
> However, if the desired program to open the file with is NOT listed, the
> user
> must navigate the filesystem to /usr/bin (or wherever) and select the
> appropriate program.
>
> A more user-friendly way would be to list all of the known programs
> installed
> that are available to open files with, and then have an "Other..." or
> "Advanced..." button for the user who would rather navigate the
> filesystem.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/firefox/+bug/18995/+subscriptions
>

Revision history for this message
Timothy Arceri (t-fridey) wrote : Re: [MASTER] "Open With" dialog not user-friendly

As far as I can tell the last upstream patch is just waiting on a review from Canonicals Chris Coulson. Although the patch has been waiting for the review for over a month already so who knows.

Revision history for this message
In , cousteau (cousteaulecommandant) wrote :

This is my view of the perfect "Open with/Save" dialog:

"File: <name of the file> (type, size)"
Two tabs: "Save as..." and "Open with..."
Under "Save as...", the typical "Save as" dialog. By default, displaying the last directory selected, or the default one (usually "Downloads").
Under "Open with...", a list of installed applications. The list will be headed by the 3 most used applications for that type. If possible, it would be nice that the rest of applications were grouped by categories (Linux) or mimic the Start menu (Windows); this is how PCManFM looks and it's quite handy. Under it, a "Custom command" box (which would allow to enter commands with arguments or paths to executables), optionally with a "Browse..." button.
At the bottom, the buttons "Ok" and "Cancel", and a "Do this automatically for this type" checkbox.

What do you think?

Revision history for this message
Chris Wilson (notgary-deactivatedaccount) wrote : Re: [MASTER] "Open With" dialog not user-friendly

According to comment #138, there's an upstream patch awaiting review.

Changed in hundredpapercuts:
milestone: none → raring-round-7
importance: Undecided → Medium
assignee: nobody → Papercuts Ninja (papercuts-ninja)
Revision history for this message
Timothy Arceri (t-fridey) wrote :

comment #138 is about the patches to port firefox to GTK 3 which is a required before this bug is fixed.

Changed in firefox-3.5 (Ubuntu):
status: Confirmed → Invalid
Changed in hundredpapercuts:
milestone: raring-round-7 → none
no longer affects: firefox-3.0 (Ubuntu)
no longer affects: firefox-3.5 (Ubuntu)
Changed in hundredpapercuts:
milestone: none → papercuts-s-gtk
Revision history for this message
In , Freddi34 (freddi34) wrote :

The missing application selector is also an issue when clicking a link with a HTML5 custom protocol and content handler. This (html5) becomes quite common now and it is almost an impertinence to force users to dig through the whole file system (as a work-around one could at least set the dialog to start at /usr/bin ). This needs a fix soon, if not in this decade then at least a usable work-around.

Revision history for this message
In , Mathieu Comandon (strycore) wrote :

Willing to pay $150 to whoever fixes this issue. (or give it to the Mozilla foundation, whatever you prefer).

Revision history for this message
In , David Bruant (bruant-d) wrote :

(In reply to Mathieu Comandon from comment #59)
> Willing to pay $150 to whoever fixes this issue. (or give it to the Mozilla
> foundation, whatever you prefer).
Within which timeframe? ;-)

Revision history for this message
In , Z-dev (z-dev) wrote :
Revision history for this message
In , Mathieu Comandon (strycore) wrote :

(In reply to David Bruant from comment #60)
> (In reply to Mathieu Comandon from comment #59)
> > Willing to pay $150 to whoever fixes this issue. (or give it to the Mozilla
> > foundation, whatever you prefer).
> Within which timeframe? ;-)

Before end of April 2014. I'll give $200 if the bug is released with the firefox version shipped with Ubuntu 14.04 and $150 if the bugfix is still in Nightly by then.

Revision history for this message
Xodetaetl (ovocean) wrote : Re: [MASTER] "Open With" dialog not user-friendly

I care about getting this fixed, so I'm offering USD 15.00 via FreedomSponsors to the first person who fix it.

Offer link: http://www.freedomsponsors.org/core/issue/416/implement-application-selector-nsimimeinfopossiblelocalhandlers-for-linux

You can also join me and throw in a few bucks there and we'll get it fixed faster. :)

If you fix this issue (see my and other pledgers acceptance criteria there) please use that site to request your payment.

no longer affects: hundredpapercuts
Revision history for this message
Murz (murznn) wrote : Re: [MASTER] "Open With" dialog not user-friendly

+15 USD from me via FreedomSponsors

Revision history for this message
In , Wproxym (wproxym) wrote :

(In reply to Mathieu Comandon from comment #62)
> (In reply to David Bruant from comment #60)
> > (In reply to Mathieu Comandon from comment #59)
> > > Willing to pay $150 to whoever fixes this issue. (or give it to the Mozilla
> > > foundation, whatever you prefer).
> > Within which timeframe? ;-)
>
> Before end of April 2014. I'll give $200 if the bug is released with the
> firefox version shipped with Ubuntu 14.04 and $150 if the bugfix is still in
> Nightly by then.

Already July 2014. Bug still in Firefox.

Revision history for this message
In , Wproxym (wproxym) wrote :

(In reply to Michel Loiseleur from comment #8)
> Created attachment 373282
> Removes file association mechanism of firefox and use xdg-open instead
>
> Hi,
>
> I've made a small patch in order to progress on this issue. It removes
> Firefox file system associations and forces use of xdg-open. I do not think
> this patch is complete since it's not cross-platform, but I really think
> it's a good step in order to solve this problem.
> There's already a file association mechanism on a Linux Desktop
> environments (Gnome, Kde, Xfce, Lxde, etc, etc). xdg-open is a simple way to
> use it. It simplifies lifes of users, which do not have to choose their
> preferred software twice, it simplifies lifes of integrators, which do not
> have to choose the default for their distributions twice and it simplifies
> source code of Firefox : there's no more need to get a file association
> mechanism compatible with all Linux Desktop environment.
>
> I don't know who will be a good "requestee" to ask for a review of this
> patch, so I've left the field empty.
>
> Regards,

Your patch only for nsHelperAppDlg.js. It's for dialog of opening file. But it does not remove Firefox file system associations. And it does not change it for xdg-open. I just patched nsHelperAppDlg.js in root omni.ja.

Revision history for this message
In , Gijskruitbosch+bugs (gijskruitbosch+bugs) wrote :

*** Bug 1116679 has been marked as a duplicate of this bug. ***

Changed in firefox:
status: Confirmed → Invalid
Changed in firefox (Ubuntu):
status: Triaged → Fix Committed
Mathew Hodson (mhodson)
Changed in firefox:
importance: Medium → Unknown
status: Invalid → Unknown
affects: mozilla-thunderbird (Ubuntu) → thunderbird (Ubuntu)
Mathew Hodson (mhodson)
summary: - [MASTER] "Open With" dialog not user-friendly
+ Firefox should use the GNOME application chooser
Revision history for this message
Michael Jones (jonesmz) wrote :

10 YEARS ? This bug is still open after 10 years.

Thanks for Timothy Arceri and Mathew Hodson for pushing some kind of progress.

Changed in firefox:
importance: Unknown → Medium
status: Unknown → Fix Released
Changed in iceweasel (Debian):
status: Unknown → Confirmed
Revision history for this message
Paul White (paulw2u) wrote :

Upstream bug showing "Fix Released" on 2015-06-11
Target milestone - mozilla41
Confirmed ok with Firefox 63 and Thunderbird 60
Marking Ubuntu content as "Fix Released" to close

Changed in thunderbird (Ubuntu):
status: Confirmed → Fix Released
Changed in firefox (Ubuntu):
status: Fix Committed → Fix Released
Mathew Hodson (mhodson)
no longer affects: iceweasel (Debian)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.