Version: 2.6.4 (using KDE KDE 3.5.5) Installed from: Debian testing/unstable Packages OS: Linux Ark doesn't seem to recognize self-extracting zip files automatically. These files often have a .exe suffix. When opening such a file in ark, I'm told that the file seems to be of type application/x-msdos-program which is not a supported archive format. I can then select "Zip-Archiv" from the list, and then it opens the file successfully; but it would be nice if ark would do this automatically, without asking. Interestingly, the "file" command seems to recognize such files: $ file Robotica_1080.exe Robotica_1080.exe: MS-DOS executable PE for MS Windows (GUI) Intel 80386 32-bit, ZIP self-extracting archive (WinZip) The file I used in this example can be found at http://www.microsoft.com/windows/windowsmedia/musicandvideo/hdvideo/contentshowcase.aspx
The problem is .exe files are Windows programs, not zip files as we know them, and so a solution probably involves installing WINE and running the "self-extracting zip" in the "fake Windows" environment so I don't know if this is a valid request for KDE.
No, as far as I can see Ark can read self-extracting zip files just fine (from the technical point of view). But it first asks the user for the file type, instead of detecting the type automatically; that's what I want to have changed. To try this, download a .exe file from the link above, and open it in Ark. After selecting "Zip File" as type, the file should be opened.
I didn't realize Ark could already do that, yes it makes sense to automatically detect the type, the user doesn't need to care about the original archive.
Both this bug and bug 117243 could be somehow be treated as a single bug report dealing with Ark's file type recognition.
*** Bug 202764 has been marked as a duplicate of this bug. ***
Changing the default assignee in the currently open Ark bug reports to me.
It appears that the link is dead; it now redirects to some unrelated stuff about playing media in Windows. Anyone got a file to test with? (I don't have access to a Windows machine right now)
One example file is 3440_Input_Driver_3W45C_WN32_19.0.9.4_A00.EXE from https://www.dell.com/support/home/en-ca/drivers/driversdetails?driverid=3w45c With 23.08.5 in Ubuntu 23.04 I cannot open it at all. > Loading the archive ‘/d/3440_Input_Driver_3W45C_WN32_19.0.9.4_A00.EXE’ failed with the following error: No suitable plugin found. Ark does not seem to support this file type. However 7z and unzip at the command line open it without any problems. If I simply rename it from .EXE to .zip, then Ark also opens it without problems. So, this should be easy to fix. Maybe it is fixed already in newer versions of Ark. At https://github.com/KDE/ark I see it supports: > Self-extracting EXE application/x-msdownload
This is fixed in https://invent.kde.org/utilities/ark/-/commit/3fa7d4fd7074917189647a5bb4f32c09bff8779e The fix is simply adding the application/x-msdownload MIME type to libarchive_readonly plugin information. I can make Ark 23.08.5 open 3440_Input_Driver_3W45C_WN32_19.0.9.4_A00.EXE linked above using s,application/x-source-rpm,application/x-msdownload, /usr/lib/x86_64-linux-gnu/qt5/plugins/kerfuffle/kerfuffle_libarchive_readonly.so to change an existing MIME type of the same length to that string.