After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 760409 - restore disk image not showing iso
restore disk image not showing iso
Status: RESOLVED FIXED
Product: gnome-disk-utility
Classification: Core
Component: general
3.18.x
Other Linux
: Normal minor
: ---
Assigned To: Kai Lüke
gnome-disk-utility-maint
Depends on:
Blocks:
 
 
Reported: 2016-01-10 19:40 UTC by Noel
Modified: 2017-05-11 18:08 UTC
See Also:
GNOME target: ---
GNOME version: 3.17/3.18


Attachments
Changed file selector filter to use proper mime-types (1.96 KB, patch)
2017-05-10 01:37 UTC, Mitchell Horne
needs-work Details | Review
Use MIME types for disk images (2.07 KB, patch)
2017-05-10 09:34 UTC, Kai Lüke
none Details | Review
Use MIME types for disk images (2.06 KB, patch)
2017-05-10 10:52 UTC, Kai Lüke
committed Details | Review

Description Noel 2016-01-10 19:40:51 UTC
Running gnome-disk-utility 3.18.3.1 in Fedora 23.

When I click on "Restore disk image..." and then browse to the folder where I have all the iso files, the files that are uppercase .ISO are filtered out.

These files are perfectly valid and should be visible in my opinion.

Renaming the files to lowercase .iso is a workaround.
Comment 1 Noel 2016-01-10 19:58:11 UTC
line #91 in `gnome-disk-utility/src/libgdu/gduutils.c` seems to be the relevant filter.

Maybe make use a custom filter that case insensitive?
Comment 2 Mitchell Horne 2017-05-10 01:37:33 UTC
Created attachment 351501 [details] [review]
Changed file selector filter to use proper mime-types

Here's a patch to fix the issue; it covers other accepted file types as well, not just .ISO.
Comment 3 Kai Lüke 2017-05-10 09:34:48 UTC
Created attachment 351521 [details] [review]
Use MIME types for disk images

Hello,

wonderful, I just needed to reorder a bit to match the case for compression correctly, thanks a lot!

Regards,
Kai
Comment 4 Kai Lüke 2017-05-10 10:39:11 UTC
Review of attachment 351501 [details] [review]:

Do you want your mail address mentioned?
Comment 5 Kai Lüke 2017-05-10 10:42:52 UTC
Review of attachment 351501 [details] [review]:

::: src/libgdu/gduutils.c
@@ +102,3 @@
       if (allow_compressed)
         {
+          gtk_file_filter_add_mime_type (filter, "application/x-raw-disk-image");

x-raw-disk-image and x-raw-disk-image-xz-compressed are swapped
Comment 6 Kai Lüke 2017-05-10 10:52:57 UTC
Created attachment 351531 [details] [review]
Use MIME types for disk images

I set you as author (Mitchell Horne <mhorne063@gmail.com>) now because your patch did have none, also the whitespace was removed in addition to the mime swap.

You can have a look on https://wiki.gnome.org/Git/CommitMessages (e.g. my change to the commit message including the bug url).
Comment 7 Mitchell Horne 2017-05-10 23:53:35 UTC
Looks good to me, thanks! Sorry about the swap and the commit message, I had written a longer one but the description somehow got removed when I generated the patch.
Comment 8 Kai Lüke 2017-05-11 18:08:46 UTC
No problem, your contribution is very appreciated :)