Bug 252701 - .svgz should expand to .svg
Summary: .svgz should expand to .svg
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: 2.14
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Raphael Kubo da Costa
URL:
Keywords:
: 305394 305399 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-29 01:07 UTC by Christopher Yeleighton
Modified: 2015-10-04 18:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 15.08.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Yeleighton 2010-09-29 01:07:06 UTC
Version:           2.14 (using KDE 4.4.4) 
OS:                Linux

Ark does not know the expanded name for .svgz files.

Reproducible: Always

Steps to Reproduce:
1.
Tell Dolphin to open <file:///usr/share/icons/default.kde4/scalable/mimetypes/fonts-package.svgz>.

Actual Results:  
1.
Ark says the archive contains fonts-package.svgz.uncompressed.

Expected Results:  
1.
The file name should be fonts-package.svg.

OS: Linux (x86_64) release 2.6.34.7-0.3-desktop
Compiler: gcc
Comment 1 Raphael Kubo da Costa 2010-10-01 16:52:22 UTC
Adding some notes so that I don't forget what to do when I have time to tackle this one: the gzip format can have the original file name in its header. KGZipFilter currently just skips this field, but we might be interested in using it for this kind of occasion.
Comment 2 Raphael Kubo da Costa 2010-12-08 02:19:42 UTC
Changing the default assignee in the currently open Ark bug reports to me.
Comment 3 Christopher Yeleighton 2012-08-18 18:27:25 UTC
*** Bug 305399 has been marked as a duplicate of this bug. ***
Comment 4 Christopher Yeleighton 2012-08-18 18:27:56 UTC
*** Bug 305394 has been marked as a duplicate of this bug. ***
Comment 5 Christopher Yeleighton 2012-08-18 18:59:35 UTC
(In reply to comment #1)
> Adding some notes so that I don't forget what to do when I have time to
> tackle this one: the gzip format can have the original file name in its
> header. KGZipFilter currently just skips this field, but we might be
> interested in using it for this kind of occasion.

{ (In reply to comment #1)
> Adding some notes so that I don't forget what to do when I have time to
> tackle this one: the gzip format can have the original file name in its
> header. KGZipFilter currently just skips this field, but we might be
> interested in using it for this kind of occasion.

Of all drawings in /usr /share /icons /oxygen /scalable /apps only nepomuk has the original file name set correctly and many have it set incorrectly so I do not thing this would be the way to go.

I suggest replacing the list of extensions to be stripped with a map from compressed extension to uncompressed extension, e.g. (".gz" => "", ".tgz" => ".tar", ".svgz" => ".svg").
Comment 6 Ragnar Thomsen 2015-10-04 18:16:29 UTC
Git commit 7e0080f1f35143eb867e377e4a28d0645b85337a by Ragnar Thomsen.
Committed on 04/10/2015 at 18:12.
Pushed by rthomsen into branch 'Applications/15.08'.

singlefileplugin: Open svgz's with correct filename

When opening svgz's just remove the terminal "z" from the filename,
instead of appending ".uncompressed".
FIXED-IN: 15.08.2
REVIEW: 125518

M  +6    -0    plugins/libsinglefileplugin/singlefileplugin.cpp

http://commits.kde.org/ark/7e0080f1f35143eb867e377e4a28d0645b85337a