From 3ec63537add6165440f67c6c6ad8413a40724c13 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Tue, 20 Dec 2005 16:54:15 +0000 Subject: Comics mime types are added to shared-mime-info CVS. Now we don't need to * backend/ev-document-factory.c: * comics/Makefile.am: * comics/comics-document.c: (comics_document_load): * comics/ev-cbr-mime.xml: * configure.ac: Comics mime types are added to shared-mime-info CVS. Now we don't need to install our own mime types. --- (limited to 'comics') diff --git a/comics/Makefile.am b/comics/Makefile.am index 7ebf0d9..bf11eb8 100644 --- a/comics/Makefile.am +++ b/comics/Makefile.am @@ -10,19 +10,3 @@ libcomicsdocument_la_SOURCES = \ comics-document.c \ comics-document.h -# need to respect $XDG_DATA_DIR probably -xdgmimedir = $(datadir)/mime/packages -xdgmime_DATA = ev-cbr-mime.xml - -EXTRA_DIST = $(xdgmime_DATA) - -if ENABLE_UPDATE_MIMEDB - -install-data-hook: - $(UPDATE_MIME_DB) $(DESTDIR)$(datadir)/mime - -uninstall-hook: - $(UPDATE_MIME_DB) $(DESTDIR)$(datadir)/mime - -endif # ENABLE_UPDATE_MIMEDB - diff --git a/comics/comics-document.c b/comics/comics-document.c index aa7236a..93cd009 100644 --- a/comics/comics-document.c +++ b/comics/comics-document.c @@ -87,12 +87,12 @@ comics_document_load (EvDocument *document, /* FIXME, use proper cbr/cbz mime types once they're * included in shared-mime-info */ - if (!strcmp (mime_type, "application/cbr")) { + if (!strcmp (mime_type, "application/x-cbr")) { comics_document->extract_command = g_strdup ("unrar p -c- -ierr"); list_files_command = g_strdup_printf ("unrar vb -c- -- %s", quoted_file); - } else if (!strcmp (mime_type, "application/cbz")) { + } else if (!strcmp (mime_type, "application/x-cbz")) { comics_document->extract_command = g_strdup ("unzip -p -C"); list_files_command = diff --git a/comics/ev-cbr-mime.xml b/comics/ev-cbr-mime.xml deleted file mode 100644 index 4a92993..0000000 --- a/comics/ev-cbr-mime.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - CBR document - Dogfen CBR - CBR-dokument - CBR-Dokument - CBR-asiakirja - CBR-dokument - CBR-dokument - CBR документ - CBR документ - CBR-dokument - - - - - CBZ document - Dogfen CBZ - CBZ-dokument - CBZ-Dokument - CBZ-asiakirja - CBZ-dokument - CBZ-dokument - CBZ-документ - CBZ-документ - CBZ-dokument - - - \ No newline at end of file -- cgit v0.9.1