FS#54977 - please resolve firefox "jpe" issue by changing mine-types
Attached to Project:
Arch Linux
Opened by rain (rain1) - Sunday, 30 July 2017, 14:42 GMT
Last edited by Eli Schwartz (eschwartz) - Thursday, 11 January 2018, 03:29 GMT
Opened by rain (rain1) - Sunday, 30 July 2017, 14:42 GMT
Last edited by Eli Schwartz (eschwartz) - Thursday, 11 January 2018, 03:29 GMT
|
Details
Description:
Hello. Sometime when saving a jpeg image from firefox (if the file has a name such as "blahblah.jpg:large"), firefox adds a ".jpe" extension. This is a bug and it should instead add .jpg or .jpeg. This can be fixed by removing jpe from the /etc/mime.types or moving to the last place. This problem could be solved in arch linux by either editing the mime-types file or importing the fedora one instead of the gentoo one. Additional info: * https://www.archlinux.org/packages/extra/any/mime-types/ |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Thursday, 11 January 2018, 03:29 GMT
Reason for closing: Fixed
Additional comments about closing: We now use Fedora mailcap instead of Gentoo mime-types.
Thursday, 11 January 2018, 03:29 GMT
Reason for closing: Fixed
Additional comments about closing: We now use Fedora mailcap instead of Gentoo mime-types.
Potentially of note: if this fix were applied it would be the only instance in the file where the extensions are not in alphabetical order[1]. Perhaps the true bug is with firefox assuming that the first is the best?
[1]: cat /etc/mime.types | grep -Po '(?<=\t)[^\t].*$' | perl -pe '$_ = join(" ", sort(split(/ /)))' | md5sum
== cat /etc/mime.types | grep -Po '(?<=\t)[^\t].*$' | md5sum