[Desktop-packages] [Bug 1551171] Re: /usr/share/applications/mimeinfo.cache is used for default applications in Firefox

2023-03-28 Thread Bug Watch Updater
** Bug watch added: Mozilla Bugzilla #1304650
   https://bugzilla.mozilla.org/show_bug.cgi?id=1304650

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1551171

Title:
  /usr/share/applications/mimeinfo.cache is used for default
  applications in Firefox

Status in Mozilla Firefox:
  Confirmed
Status in firefox package in Ubuntu:
  New

Bug description:
  See https://bugzilla.mozilla.org/show_bug.cgi?id=727422

  With Firefox, default applications are selected by Firefox using
  /usr/share/applications/mimeinfo.cache, however, this list is a system
  generated list in random order and therefor does not reflect the
  user's preferences of which application should be used to open a file.

  When I click on a pdf (for example), I want to have the option to open
  it in my default application, in my case in okular, and not in
  something else. However, acroread is invariably presented is presented
  as default choice because it happens to be the first entry in
  /usr/share/applications/mimeinfo.cache for application/pdf.

  This happens in spite of the fact that the desktop provides correct
  defaults.list and mimeapps.list files

  The comments in the firefox bug seem to suggest that firefox
  developers are convinced that firefox calls the correct gtk libraries
  to determine the correct application. If this is the case, then it is
  necessarily the ubuntu (or possibly kubuntu) infrastructure to be
  failing.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: firefox 44.0.2+build1-0ubuntu0.15.10.1
  ProcVersionSignature: Ubuntu 4.2.0-30.36-generic 4.2.8-ckt3
  Uname: Linux 4.2.0-30-generic x86_64
  ApportVersion: 2.19.1-0ubuntu5
  Architecture: amd64
  BuildID: 20160209234513
  CurrentDesktop: KDE
  Date: Mon Feb 29 11:37:25 2016
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2013-12-12 (808 days ago)
  InstallationMedia: Kubuntu 13.10 "Saucy Salamander" - Release amd64 
(20131016.1)
  SourcePackage: firefox
  UpgradeStatus: Upgraded to wily on 2015-10-23 (129 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/1551171/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1551171] Re: /usr/share/applications/mimeinfo.cache is used for default applications in Firefox

2022-10-13 Thread Bug Watch Updater
** Changed in: firefox
   Importance: Medium => Unknown

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1551171

Title:
  /usr/share/applications/mimeinfo.cache is used for default
  applications in Firefox

Status in Mozilla Firefox:
  Confirmed
Status in firefox package in Ubuntu:
  New

Bug description:
  See https://bugzilla.mozilla.org/show_bug.cgi?id=727422

  With Firefox, default applications are selected by Firefox using
  /usr/share/applications/mimeinfo.cache, however, this list is a system
  generated list in random order and therefor does not reflect the
  user's preferences of which application should be used to open a file.

  When I click on a pdf (for example), I want to have the option to open
  it in my default application, in my case in okular, and not in
  something else. However, acroread is invariably presented is presented
  as default choice because it happens to be the first entry in
  /usr/share/applications/mimeinfo.cache for application/pdf.

  This happens in spite of the fact that the desktop provides correct
  defaults.list and mimeapps.list files

  The comments in the firefox bug seem to suggest that firefox
  developers are convinced that firefox calls the correct gtk libraries
  to determine the correct application. If this is the case, then it is
  necessarily the ubuntu (or possibly kubuntu) infrastructure to be
  failing.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: firefox 44.0.2+build1-0ubuntu0.15.10.1
  ProcVersionSignature: Ubuntu 4.2.0-30.36-generic 4.2.8-ckt3
  Uname: Linux 4.2.0-30-generic x86_64
  ApportVersion: 2.19.1-0ubuntu5
  Architecture: amd64
  BuildID: 20160209234513
  CurrentDesktop: KDE
  Date: Mon Feb 29 11:37:25 2016
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2013-12-12 (808 days ago)
  InstallationMedia: Kubuntu 13.10 "Saucy Salamander" - Release amd64 
(20131016.1)
  SourcePackage: firefox
  UpgradeStatus: Upgraded to wily on 2015-10-23 (129 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/1551171/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1551171] Re: /usr/share/applications/mimeinfo.cache is used for default applications in Firefox

2019-01-12 Thread Bug Watch Updater
Launchpad has imported 34 comments from the remote bug at
https://bugzilla.mozilla.org/show_bug.cgi?id=727422.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2012-02-15T14:17:20+00:00 dutchkind wrote:

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20100101 
Firefox/10.0.1
Build ID: 2012020800

Steps to reproduce:

With Firefox 10, and possibly before, default applications are selected
by Firefox using /usr/share/applications/mimeinfo.cache, however, this
list is a system generated list in random order and therefor does not
reflect the user's preferences of which application should be used to
open a file.


Actual results:

When I click on a pdf (for example), I want to have the option to open
it in my default application, in my case in okular, and not in gimp.
However, gimp is presented as the only choice because it happens to be
the first in the row in /usr/share/applications/mimeinfo.cache.
Selecting an other application is not very user friendly.


Expected results:

Instead of using the system wide cache Firefox should use
$HOME/.local/share/applications/defaults.list or
$HOME/.local/share/applications/mimeapps.list to honor the user's
preferences, and if nothing is found there, then
/usr/share/applications/defaults.list should be used instead of
/usr/share/applications/mimeinfo.cache

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1551171/comments/0


On 2012-02-15T20:51:55+00:00 Bugzilla-tf wrote:

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

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1551171/comments/1


On 2012-02-15T20:55:01+00:00 Bugzilla-tf wrote:

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

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1551171/comments/2


On 2012-02-15T21:53:50+00:00 Bzbarsky wrote:

We don't do anything with mimeinfo.cache directly.  We just call into
gnome-vfs using gnome_vfs_mime_get_default_application

Is that function doing the wrong thing on your machine for some reason?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1551171/comments/3


On 2012-02-16T07:55:53+00:00 dutchkind wrote:

I don't know, I don't use gnome, but some gnome libs are installed
(Opensuse). But I use apparmor and when I blocked access to
/usr/share/applications/mimeinfo.cache in the hope some other way was
used, there was not even a default app shown, so I am quite sure it is
used by firefox somehow. Besides, before upgrading from 9 to 10 I didn't
have a problem with this behavior, it worked ok, although in
thunderbird, which is of the same version all the time, it started in 8
or so that I suddenly had chromium as the only option to open url's
which at the time I didn't trace back to this problem.

As for finding the default app, wouldn't that be xdg-mime query default
? And if there is a need to use mimeinfo.cache, why not have all apps
listed there in the dropdown list so the user can easily select? Now a
user has to know which executable he needs to open something, not always
easy.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1551171/comments/4


On 2012-02-16T09:24:45+00:00 ghomem wrote:

I agree with Dutch Kind that this should be handled on a desktop
agnostic manner like xdg-mime.

I have to add that we had this problem since at least Firefox 3.6.x on
KDE.

Possible solutions in order of preference:

1. make this work in a desktop agnostic manner (via xdg)
2. use the GNOME application order in the correct way (not via the cache file)

This first solution seems better because it would be up to the
distribution to ensure that xdg* works well, whereas the second one may
reflect the good or bad behaviour of GNOME.

Usage examples for xdg-mime query:

[gustavo@localhost ~]$ xdg-mime query default application/pdf
AdobeReader.desktop
[gustavo@localhost ~]$ xdg-mime query default image/jpg
gwenview.desktop
[gustavo@localhost ~]

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1551171/comments/5


On 2012-02-16T15:01:46+00:00 Bzbarsky wrote:

> As for finding the default app, wouldn't that be xdg-mime query
default

xdg-mime postdates the creation of this code.  Bug 296443 covers using
it.

Again, we're not actually using mimeinfo.cache ourselves.  It's your

[Desktop-packages] [Bug 1551171] Re: /usr/share/applications/mimeinfo.cache is used for default applications in Firefox

2018-07-21 Thread Paul White
** Bug watch added: Mozilla Bugzilla #727422
   https://bugzilla.mozilla.org/show_bug.cgi?id=727422

** Also affects: firefox via
   https://bugzilla.mozilla.org/show_bug.cgi?id=727422
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1551171

Title:
  /usr/share/applications/mimeinfo.cache is used for default
  applications in Firefox

Status in Mozilla Firefox:
  Unknown
Status in firefox package in Ubuntu:
  New

Bug description:
  See https://bugzilla.mozilla.org/show_bug.cgi?id=727422

  With Firefox, default applications are selected by Firefox using
  /usr/share/applications/mimeinfo.cache, however, this list is a system
  generated list in random order and therefor does not reflect the
  user's preferences of which application should be used to open a file.

  When I click on a pdf (for example), I want to have the option to open
  it in my default application, in my case in okular, and not in
  something else. However, acroread is invariably presented is presented
  as default choice because it happens to be the first entry in
  /usr/share/applications/mimeinfo.cache for application/pdf.

  This happens in spite of the fact that the desktop provides correct
  defaults.list and mimeapps.list files

  The comments in the firefox bug seem to suggest that firefox
  developers are convinced that firefox calls the correct gtk libraries
  to determine the correct application. If this is the case, then it is
  necessarily the ubuntu (or possibly kubuntu) infrastructure to be
  failing.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: firefox 44.0.2+build1-0ubuntu0.15.10.1
  ProcVersionSignature: Ubuntu 4.2.0-30.36-generic 4.2.8-ckt3
  Uname: Linux 4.2.0-30-generic x86_64
  ApportVersion: 2.19.1-0ubuntu5
  Architecture: amd64
  BuildID: 20160209234513
  CurrentDesktop: KDE
  Date: Mon Feb 29 11:37:25 2016
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2013-12-12 (808 days ago)
  InstallationMedia: Kubuntu 13.10 "Saucy Salamander" - Release amd64 
(20131016.1)
  SourcePackage: firefox
  UpgradeStatus: Upgraded to wily on 2015-10-23 (129 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/1551171/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp