Public bug reported:

Hi,

I've had the unpleasant surprise to discover that if I play with the default 
browser to something else like Chrome, Opera or Vivaldi and the revert to 
either Firefox or Firefox Nightly (firefox-trunk)  then Firefox (or the 
nightly, depending on which I select as the new default) become the default 
program with which Nautilus (Files) tries to open .PNG files.
 
I suppose it might be related to their .desktop files. For example, Chrome and 
Opera have these Mimetypes specified, respectively:

MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
 
MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;

Firefox and Firefox Nightly:
 
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;

 
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;

(they're the same)
 
So I edited /usr/share/applications/firefox.desktop and removed the "image/png" 
bit and solved the problem for Firefox. The un-modified firefox-trunk.desktop 
file still has causes the problem. Weirdly enough, the default application to 
open .jpg files does not change.
 
Why does the firefox.desktop file require all the additonal "noise" when we 
have plenty of other applications to handle those mimetypes? The other browsers 
seem to do just fine with their shorter MimeType lines.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: firefox 40.0.3+build1-0ubuntu0.14.04.1
Uname: Linux 4.1.7-040107-generic x86_64
NonfreeKernelModules: nvidia
AddonCompatCheckDisabled: False
ApportVersion: 2.14.1-0ubuntu3.13
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC1:  silviu     2596 F.... pulseaudio
 /dev/snd/pcmC0D0p:   silviu     2596 F...m pulseaudio
 /dev/snd/controlC0:  silviu     2596 F.... pulseaudio
BuildID: 20150826185918
Channel: Unavailable
CurrentDesktop: Unity
Date: Mon Sep 21 09:14:05 2015
Extensions: extensions.sqlite corrupt or missing
ForcedLayersAccel: False
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
IncompatibleExtensions: Unavailable (corrupt or non-existant compatibility.ini 
or extensions.sqlite)
InstallationDate: Installed on 2014-12-19 (275 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
IpRoute:
 default via 192.168.1.1 dev eth1  proto static 
 172.17.0.0/16 dev docker0  proto kernel  scope link  src 172.17.42.1 
 192.168.1.0/24 dev eth1  proto kernel  scope link  src 192.168.1.5  metric 1
Locales: extensions.sqlite corrupt or missing
PrefSources:
 prefs.js
 [Profile]/extensions/supp...@lastpass.com/defaults/preferences/defaults.js
Profiles: Profile0 (Default) - LastVersion=40.0.3/20150826185918 (In use)
RelatedPackageVersions:
 gecko-mediaplayer 1.0.8-4ubuntu1
 totem-mozilla     3.10.1-1ubuntu4
 rhythmbox-mozilla 3.0.2-0ubuntu2
RfKill:
 
RunningIncompatibleAddons: False
SourcePackage: firefox
Themes: extensions.sqlite corrupt or missing
UpgradeStatus: No upgrade log present (probably fresh install)
WifiSyslog:
 
dmi.bios.date: 10/27/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1104
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: P8P67 LE
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev X.0X
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr1104:bd10/27/2011:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnP8P67LE:rvrRevX.0X:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

** Affects: firefox (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1497843

Title:
  when setting firefox as default browser it becomes default app to open
  .PNG files

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to