Bug 358188 - compress to application/zip creates wrong file type (application/x-7z-compressed)
Summary: compress to application/zip creates wrong file type (application/x-7z-compres...
Status: CONFIRMED
Alias: None
Product: ark
Classification: Applications
Component: plugins (show other bugs)
Version: 15.12.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Ragnar Thomsen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-18 20:51 UTC by Bart De Ceulaer
Modified: 2016-03-10 10:22 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bart De Ceulaer 2016-01-18 20:51:55 UTC
Creating a zip file using right-click | Compress | Compress to | set filter to "application/zip"
This should create a file of type"application/x-7z-compressed" (which can be read by okular as a comic book archive).
Instead a file of type "application/x-7z-compressed" is created (which currently cannot be opened by okular)

Reproducible: Always

Steps to Reproduce:
1. select jpg files to compress
2. right-click | Compress | Compress to | set filter to "application/zip"
3. show properties of the zip file, this shows "application/x-7z-compressed"

Actual Results:  
"application/x-7z-compressed"

Expected Results:  
"application/x-7z-compressed"
Comment 1 Frank Reininghaus 2016-01-20 21:56:42 UTC
Thanks for the bug report. The "Compress" service menu is provided by Ark -> I'll reassign this report.
Comment 2 Elvis Angelaccio 2016-01-20 22:09:55 UTC
(In reply to Bart De Ceulaer from comment #0)
> Creating a zip file using right-click | Compress | Compress to | set filter
> to "application/zip"
> This should create a file of type"application/x-7z-compressed" (which can be
> read by okular as a comic book archive).

You meant "application/zip"?

Btw I was able to reproduce it after unchecking the "automatically select filename extension" checkbox.

As a temporary workaround, please make sure to add the ".zip" extension when you choose the archive's filename.
Or just use the "Compress Here (as ZIP)" service menu entry.
Comment 3 Bart De Ceulaer 2016-01-22 13:02:23 UTC
> You meant "application/zip"?
Of course, that's what I meant, sorry, my mistake.
And indeed, I forgot to mention that I unchecked the "automatically select filename extension" checkbox. I normally use this shortcut to create .cbz files (comic book reader), to be viewed via Okular.
I will use one of the workarounds you described for the time being; no problem.
Thanks for the support.
Bart
Comment 4 Elvis Angelaccio 2016-02-07 13:12:32 UTC
What Ark should do is setting the -tzip switch of 7z.