Bug 59856

Summary: Problem associating *.ps.gz to application/postscript
Product: [Applications] kghostview Reporter: Albert Astals Cid <aacid>
Component: generalAssignee: Wilco Greven <greven>
Status: RESOLVED FIXED    
Severity: normal CC: divided.mind
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Albert Astals Cid 2003-06-15 21:31:59 UTC
Version:           0.20 (using KDE 3.1.9)
Compiler:          gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
OS:          Linux (i686) release 2.4.21-0.18mdk

If you go to KDE Components -> File Association and in application/postcript you add *.ps.gz to Filename Patterns, KGhostview refuses to load any *.ps.gz file saying it can only open ps and pdf files.

If the association is not done KGhostiew is able to open .ps.gz files but it sucks because you can't open them directly clicking in konqueror.
Comment 1 Luís Pedro Coelho 2003-06-15 23:54:03 UTC
This is a tricky one. 
 
The problem is that we can only have one mimetype per file something like .ps.gz is 
more than that. It should be opened by kghostview, but kghostview should 
recognize it as a gzipped file and gunzip it. 
 
If we classify it as application/x-gzip then it gets opened by ark (not good). If we 
classify it as application/postscript then kghostview doesn't realise it is compressed. 
 
Any thoughts, anyone? 
Comment 2 Thiago Macieira 2003-06-16 00:28:10 UTC
We should be able to tag them as "application/postscript; compression=gzip". 
Comment 3 Thiago Macieira 2003-10-09 00:05:53 UTC
*** Bug 65707 has been marked as a duplicate of this bug. ***
Comment 4 Rafał Rzepecki 2003-10-11 18:29:35 UTC
I think "application/postscript; content-encoding=application/x-gzip", or 
somethink like this. This would better reflect the standard headers sent by 
http servers. 
Comment 5 Thiago Macieira 2003-10-11 21:58:36 UTC
Content-Encoding is a different MIME header than Content-Type, but that would be 
acceptable as well. 
 
Note: Content-Encoding: gzip 
(not application/gzip) 
 
Anyways, this requires support in kdelibs that doesn't exist yet. KGhostview can have a 
workaround for this for the time being. 
Comment 6 Eray Ozkural 2003-10-28 12:53:31 UTC
umm, goes deeper than it appears, of course ;)
Comment 7 Luís Pedro Coelho 2003-11-01 17:12:27 UTC
Ok, kghostview is sort of enabled to open *.gz (and *.bz2) files and the 
application/x-gzpostscript mimetype just introduced handles *.ps.gz files.

I am closing this bug here since the real solution which was hinted to here is to be done at kdelibs level. In the meanwhile clicking on a *.ps.gz does open kghostview which does open the file.

regards,
luis