[Okular-devel] [Bug 179101] New: Comicbook generator should accept files with .zip and .rar extensions

David Palacio dpalacio at uninorte.edu.co
Tue Dec 30 02:17:38 CET 2008


http://bugs.kde.org/show_bug.cgi?id=179101

           Summary: Comicbook generator should accept files with .zip and
                    .rar extensions
           Product: okular
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: okular-devel at kde.org
        ReportedBy: dpalacio at uninorte.edu.co


Version:           0.7.80 (using 4.1.86 (KDE 4.1.86 (KDE 4.2 >= 20081221)),
Debian packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.26-1-amd64

I wrote a ruby program that uses the Okular part as it's main widget. Right now
I have to either modify a Comicbook generator desktop file or duplicate the
generator code to let the part open .zip & .rar files (it is very annoying to
rename those files before being able to open them). IMO, the Comicbook
generator should handle those extensions as well.

In my tests the following patch has two effects: 1) The part will be able to
open .zip and .rar files as comicbooks. 2) The Okular shell will *not* be
associated with these extensions

Index: libokularGenerator_comicbook.desktop
===================================================================
--- libokularGenerator_comicbook.desktop        (revisión: 900827)
+++ libokularGenerator_comicbook.desktop        (copia de trabajo)
@@ -61,7 +61,7 @@
 Comment[zh_CN]=Okular 的 Comic book 格式后端
 Comment[zh_TW]=Okular 的 Comic book 後端
 X-KDE-ServiceTypes=okular/Generator
-MimeType=application/x-cbz;application/x-cbr;
+MimeType=application/zip;application/x-cbz;application/x-rar;application/x-cbr;
 X-KDE-Library=okularGenerator_comicbook
 X-KDE-Priority=1
 X-KDE-okularAPIVersion=1


Cons:
* Nothing important. Associating zips and rars with this generator makes sense
and little for any other. If there were ever any conflict, the Generator
selection window would popup.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list