#795703 base: Dolphin showing .Iso file as text wants to open in Kate

Package:
kate
Source:
kate
Description:
powerful text editor
Submitter:
gigi
Date:
2015-08-18 12:18:08 UTC
Severity:
minor
#795703#5
Date:
2015-08-16 11:26:50 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation? Could not only see some iso as a text icon
   * What exactly did you do (or not do) that was effective (or
     ineffective)? It's a cosmetic issue
   * What was the outcome of this action? Modified the freedesktop.org.xml to fix this issue
   * What outcome did you expect instead? Issue was fixed after editing the freedesktop.org.xml file

*** End of the template - remove these template lines ***

#795703#10
Date:
2015-08-16 12:03:48 UTC
From:
To:
Detalied problem and fix:

Dolphin showing .ISO file as text and opens in Kate or Kwrite.
To duplicate this problem, download the three ISO files below:

dban-2.3.0_i586.iso shows as normal in Dolphin.
http://sourceforge.net/projects/dban/files/dban/dban-2.3.0/dban-2.3.0_i586.iso/download

xubuntu-14.04.3-desktop-i386 shows as text in Dolphin.
http://mirror.us.leaseweb.net/ubuntu-cdimage/xubuntu/releases/14.04/release/xubuntu-14.04.3-desktop-i386.iso

gparted-live-0.23.0-1-i586 shows as text in Dolphin.
http://downloads.sourceforge.net/gparted/gparted-live-0.23.0-1-i586.iso


open terminal
edit the freedesktop.org.xml file below the x-cd-image entry
kdesudo kate /usr/share/mime/packages/freedesktop.org.xml


Freedesktop.org.xml before:
<sub-class-of type="application/x-raw-disk-image"/>
    <alias type="application/x-iso9660-image"/>
    <glob pattern="*.iso"/>
    <glob pattern="*.iso9660"/>
  </mime-type>


Freedesktop.org.xml after:
<sub-class-of type="application/x-raw-disk-image"/>
    <alias type="application/x-iso9660-image"/>
    <glob weight="80" pattern="*.iso"/>
    <glob pattern="*.iso9660"/>
  </mime-type>


save the xml file
update the mime database
sudo update-mime-database /usr/share/mime
reboot computer
You should now be able to view ISO files as normal.