Bug 363626 - JPG files aren't shown by default in the open dialog, *.jfif files are
Summary: JPG files aren't shown by default in the open dialog, *.jfif files are
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: File formats (other bugs)
Version First Reported In: 3.0 Release Candidate
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL: http://files.kde.org/krita/3/linux/de...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-28 11:54 UTC by rkfg
Modified: 2016-06-20 10:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
screenshot of krita opening jpg (199.95 KB, image/png)
2016-05-28 14:44 UTC, Halla Rempt
Details
No jpegs (154.74 KB, image/png)
2016-05-28 16:27 UTC, rkfg
Details
Jpegs are here when filtered by webp (181.97 KB, image/png)
2016-05-28 16:28 UTC, rkfg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rkfg 2016-05-28 11:54:38 UTC
Filtering by the filetype looks broken as there are no *.jpg files visible when "All supported formats" is chosen.

Reproducible: Always

Steps to Reproduce:
1. Press Ctrl+O
2. Navigate to a directory with jpegs


Actual Results:  
No jpegs are available for opening.

Expected Results:  
All files that are actually supported should not be filtered out.

It could be circumvented by chosing "webp" file format, though then you'll also get all other files like *.log, *.txt, binary files like *.o and what not. Choosing image/jpeg doesn't help to show only jpegs (as it suggests). PNG and GIF files are shown normally, probably other than JPG formats are fine, too.
Comment 1 Halla Rempt 2016-05-28 14:44:04 UTC
Created attachment 99229 [details]
screenshot of krita opening jpg

Hm, works here on OpenSUSE with Gnome 3. Which desktop environment do you use and can you show me a screenshot of the file dialog?
Comment 2 rkfg 2016-05-28 16:27:55 UTC
Created attachment 99231 [details]
No jpegs

I don't use any DE, instead I have Awesome WM.
Comment 3 rkfg 2016-05-28 16:28:28 UTC
Created attachment 99232 [details]
Jpegs are here when filtered by webp
Comment 4 rkfg 2016-06-20 06:18:40 UTC
For whatever reason when I attempt to save a jpeg file Krita suggests to save it as a *.jfif file. It also shows files with such an extension when "All supported formats" is selected.
Comment 5 rkfg 2016-06-20 09:57:45 UTC
Okay, something should be wrong with my user. Ran Krita from root and another clear one and they see *.jpg. Will try to search for culprits.
Comment 6 rkfg 2016-06-20 10:04:17 UTC
Found it. The problematic file is ~/.local/share/mime/packages/x-wine-extension-jfif.xml

Contents:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="image/jpeg">
    <glob pattern="*.jfif"/>
    <comment>JPEG Image</comment>
  </mime-type>
</mime-info>

After removing it and executing 'update-mime-database ~/.local/share/mime' it all works as expected. Weird, because I haven't got any problems with other apps. Maybe they just don't use MIME.