Reply to topic

Dolphin showing .Iso file as text wants to open in Kwrite

User avatar orbmiser
Registered Member
Posts
93
Karma
1
It's an issue known as recent depending on what engine was used to generate the iso.

https://forum.manjaro.org/index.php?topic=14833.0
https://forum.manjaro.org/index.php?topic=15231.0

Hi guys, further information on this problem. First of all I found out that it only hybrid iso's that are showing up as .txt (although they keep the .iso extension) then I used a tool owned by libcdio 0.92-1 called iso-info to check for differences in the iso's and the following is what I found:

First iso is "deepin" which is showing as a proper .iso file:

Code: Select all
[[email protected] Linux]$ iso-info deepin_2014_final_amd64.iso
__________________________________
ISO 9660 image: deepin_2014_final_amd64.iso
Application : LINUXDEEPIN LIVECD
Preparer    : XORRISO-1.3.2 2013.08.07.110001, LIBISOBURN-1.3.2, LIBISOFS-1.3.2, LIBBURN-1.3.2
Publisher   : LINUXDEEPIN PROJECT <HTTP://WWW.LINUXDEEPIN.COM>
Volume      : LinuxDeepin 2014
No Joliet extensions


Code: Select all
[[email protected] Linux]$ iso-info KaOS-kf5-2014.07.12a-x86_64.iso
iso-info version 0.92 x86_64-unknown-linux-gnu
__________________________________
ISO 9660 image: KaOS-kf5-2014.07.12a-x86_64.iso
Application : KaOS Live/Rescue CD
Preparer    : prepared by mkkdeosiso
Publisher   : KaOS <http://kaosx.us>
System      : LINUX
Volume      : KAOS_20140712
No Joliet extensions


Old preparer for first one is Preparer : XORRISO-1.3.2 2013.08.07.110001, LIBISOBURN-1.3.2, LIBISOFS-1.3.2, LIBBURN-1.3.2. The newer ISO is a Hybrid and is Preparer : prepared by mkkdeosiso
So is this a Dolphin issue? As the workaround is to open K3b manually and select Tools>Burn Image should work normally.
And don't know if this is a KDE or Dolphin issue or something else?

As have this issue when I downloaded the manjaro-kde-0.8.10-x86_64.iso. As shows up wit a text icon and identified as a text file.

Image

But burns as an iso just fine.

.


User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS
Please provide the output of "file --mime-type" against the two types of ISO image. Sounds like the mimetype recognition is failing due to missing magic bytes.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
User avatar orbmiser
Registered Member
Posts
93
Karma
1
bcooksley wrote:Please provide the output of "file --mime-type" against the two types of ISO image. Sounds like the mimetype recognition is failing due to missing magic bytes.


And which mime file? I see many all over the place.
.


User avatar google01103
Manager
Posts
6668
Karma
25
Code: Select all
file --mime-type deepin_2014_final_amd64.iso
file  --mime-type KaOS-kf5-2014.07.12a-x86_64.iso


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar orbmiser
Registered Member
Posts
93
Karma
1
google01103 wrote:
Code: Select all
file --mime-type deepin_2014_final_amd64.iso
file  --mime-type KaOS-kf5-2014.07.12a-x86_64.iso


Those were examples from the thread links. For me different with iso in downloads I tried.

Code: Select all
[email protected] ~/Downloads $ file --mime-type manjaro-kde-0.8.10-x86_64.iso
manjaro-kde-0.8.10-x86_64.iso: application/octet-stream

Doing an old Redo image gives results

[email protected] ~/Downloads $ file --mime-type redobackup-livecd-1.0.4.iso
redobackup-livecd-1.0.4.iso: application/x-iso9660-image


.


User avatar google01103
Manager
Posts
6668
Karma
25
if you do systemsettings -> file associations -> and search individually for octect-stream and x-iso9660-image I'm gonna guess that either they're not listed or that they don't have applications associated with them and you'd need to rectify that


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar google01103
Manager
Posts
6668
Karma
25
to rectify - in Dolphin right click the iso -> open with -> other -> enter preferred app and also check "remember application association" -> ok


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar orbmiser
Registered Member
Posts
93
Karma
1
google01103 wrote:to rectify - in Dolphin right click the iso -> open with -> other -> enter preferred app and also check "remember application association" -> ok


Yes and tried that now all text files open with K3b. So now I had to roll back that association. As now .txt and text files association is borked.
The problem is newer iso's are seen on a lower mime-type as application/octet-stream and not as application/x-iso9660-image. And can't gobally change file type to application. And has to do with mime-types not right.
From the 2nd link thread.
inside terminal (or you can do Alt+F2)
kdesu kate

paste the following into it:

Code: [Select]

<?xml version="1.0" encoding="UTF-8"?>
<!-- Notes: This is a fix to set .iso files to let media-burner,media-player and/or archiver
take priority over pattern that is found inside those files that somehow matches the text/plain
mimetype -->
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-cd-image">
<comment>raw CD image</comment>
<comment xml:lang="ar">صورة CD خامة</comment>
<comment xml:lang="[email protected]">suvoraja vyjava CD</comment>
<comment xml:lang="bg">Изображение — raw CD</comment>
<comment xml:lang="ca">imatge de CD en cru</comment>
<comment xml:lang="cs">Surový obraz CD</comment>
<comment xml:lang="da">rå cd-aftryk</comment>
<comment xml:lang="de">CD-Roh-Abbild</comment>
<comment xml:lang="el">εικόνα περιεχομένου ψηφιακού δίσκου</comment>
<comment xml:lang="en_GB">raw CD image</comment>
<comment xml:lang="eo">kruda lumdiskbildo</comment>
<comment xml:lang="es">imagen de CD en bruto</comment>
<comment xml:lang="eu">CD gordinaren irudia </comment>
<comment xml:lang="fi">raaka CD-vedos</comment>
<comment xml:lang="fo">rá CD mynd</comment>
<comment xml:lang="fr">image CD brute</comment>
<comment xml:lang="ga">amhíomhá dhlúthdhiosca</comment>
<comment xml:lang="gl">imaxe de CD en bruto</comment>
<comment xml:lang="he">תמונת דיסק גולמית</comment>
<comment xml:lang="hu">nyers CD-lemezkép</comment>
<comment xml:lang="id">citra CD mentah</comment>
<comment xml:lang="it">Immagine raw CD</comment>
<comment xml:lang="ja">生 CD イメージ</comment>
<comment xml:lang="kk">өңделмеген CD бейнесі</comment>
<comment xml:lang="ko">CD 이미지</comment>
<comment xml:lang="lt">raw CD atvaizdis</comment>
<comment xml:lang="lv">CD jēlattēls</comment>
<comment xml:lang="ms">Imej CD mentah</comment>
<comment xml:lang="nb">rått CD-bilde</comment>
<comment xml:lang="nl">ruw CD-beeldbestand</comment>
<comment xml:lang="nn">rått CD-bilete</comment>
<comment xml:lang="pl">Surowy obraz CD</comment>
<comment xml:lang="pt">imagem em bruto de CD</comment>
<comment xml:lang="pt_BR">Imagem bruta de CD</comment>
<comment xml:lang="ro">imagine de CD brută</comment>
<comment xml:lang="ru">образ компакт-диска</comment>
<comment xml:lang="sk">Surový obraz CD</comment>
<comment xml:lang="sl">surovi CD odtis</comment>
<comment xml:lang="sq">Imazh raw CD</comment>
<comment xml:lang="sr">сирови отисак ЦД-а</comment>
<comment xml:lang="sv">rå cd-avbild</comment>
<comment xml:lang="uk">образ raw CD</comment>
<comment xml:lang="vi">ảnh đĩa CD thô</comment>
<comment xml:lang="zh_CN">原始 CD 映像</comment>
<comment xml:lang="zh_TW">原生 CD 映像</comment>
<sub-class-of type="application/x-raw-disk-image"/>
<alias type="application/x-iso9660-image"/>
<glob weight="60" pattern="*.iso"/>
<glob weight="60" pattern="*.iso9660"/>
</mime-type>
</mime-info>


Click "Save As"

Inside the "name:" box, paste: /usr/share/mime/packages/mimetypefixes.xml
Click save.

Note: It would be a good idea if Manjaro, in future (kde branch only) releases, has that file as manjaromimetypefixes.xml
for it. More fixes may be added to that file in the future.

update the mime database:
sudo update-mime-database /usr/share/mime

You'll need to restart dolphin to see effect.

.


User avatar google01103
Manager
Posts
6668
Karma
25
to fix txt associations systemsettings -> search for "plain" -> remove k3b from App preference order

if you do basically the same for octet-stream and add association K3b ? I have the mime type but no association though the file pattern given is .bin


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar orbmiser
Registered Member
Posts
93
Karma
1
Well I'll look into it. Was more interested if this is a known bug? If not making info available so fixes can be generated. As the fixes supplied on other threads isn't for the average desktop user. As is a bug or something not updated to handle all types of iso's. As all .iso types should be handled and follow the same association. All iso's should elicit same action.
.


User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS
As many systems do now, we rely on mime type information to determine which application to open the file with - rather than the file extension, which is unreliable in some cases. In this case, a bug exists in shared-mime-info, which should be reported to the freedesktop.org Bugzilla. Please provide links to the respective ISO images which are incorrectly recognised in your report.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
alex94puchades
Registered Member
Posts
1
Karma
0
This problem is still present as of Fedora 22 (KDE). Could someone point me to the original bug report to provide further info? Thanks
wolfi323
Registered Member
Posts
1128
Karma
11
OS
alex94puchades wrote:This problem is still present as of Fedora 22 (KDE). Could someone point me to the original bug report to provide further info? Thanks

One bug report is here, but that should be fixed meanwhile (it is fixed in openSUSE at least...):
https://bugs.freedesktop.org/show_bug.cgi?id=80877
kde-pcdoctor
Registered Member
Posts
15
Karma
0
I have this issue with Debian 8 KDE 32bit.
dban-2.3.0_i586.iso shows as normal.
http://sourceforge.net/projects/dban/fi ... o/download

xubuntu-14.04.3-desktop-i386 shows as text.
http://mirror.us.leaseweb.net/ubuntu-cd ... p-i386.iso

gparted-live-0.23.0-1-i586 shows as text.
http://downloads.sourceforge.net/gparte ... 1-i586.iso
wolfi323
Registered Member
Posts
1128
Karma
11
OS
kde-pcdoctor wrote:xubuntu-14.04.3-desktop-i386 shows as text.
http://mirror.us.leaseweb.net/ubuntu-cd ... p-i386.iso

This one shows correctly here on openSUSE, haven't tried to download the others.

Have a look at the mentioned bug report and try to apply the workaround mentioned there.
I.e. make this change in the file /usr/share/mime/packages/freedesktop.org.xml (might be slightly different in your distribution):
http://cgit.freedesktop.org/xdg/shared- ... f7331a338b

If that helps, you might want to file a bug report with your distribution that they include that "fix".

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], dcihon, Google [Bot], Sogou [Bot]