Commit fec92182 authored by Marco Martin's avatar Marco Martin

every mimetype with own desktop file

splits the desktop file of the active app per mimetype,
as is done for the desktop version and for the part,
so only the ones that were actually built will be supported
parent 96c69528
......@@ -86,6 +86,6 @@ Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=7
InitialPreference=6
NoDisplay=true
MimeType=application/vnd.kde.okular-archive;application/pdf;application/x-gzpdf;application/x-bzpdf;application/x-wwf;application/epub+zip;
MimeType=application/vnd.kde.okular-archive;
......@@ -29,5 +29,5 @@ install(TARGETS okularGenerator_chmlib DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_chmlib.desktop okularChm.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_chm.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( PROGRAMS okularApplication_chm.desktop active-documentviewer_chm.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
[Desktop Entry]
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
MimeType=application/x-chm;
X-KDE-Keywords=chm
\ No newline at end of file
......@@ -26,6 +26,6 @@ install(TARGETS okularGenerator_comicbook DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_comicbook.desktop okularComicbook.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_comicbook.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES libokularGenerator_comicbook.desktop okularComicbook.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_comicbook.desktop active-documentviewer_comicbook.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
[Desktop Entry]
MimeType=application/x-chm;
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
X-KDE-Keywords=cbr, cbz, cbt, Comic Book
\ No newline at end of file
......@@ -22,7 +22,7 @@ install(TARGETS okularGenerator_djvu DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_djvu.desktop okularDjvu.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_djvu.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES libokularGenerator_djvu.desktop okularDjvu.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_djvu.desktop active-documentviewer_djvu.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
[Desktop Entry]
MimeType=image/vnd.djvu;
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
X-KDE-Keywords=djvu
\ No newline at end of file
......@@ -60,5 +60,5 @@ install(TARGETS okularGenerator_dvi DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_dvi.desktop okularDvi.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_dvi.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( PROGRAMS okularApplication_dvi.desktop active-documentviewer_dvi.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
[Desktop Entry]
MimeType=application/x-dvi;application/x-gzdvi;application/x-bzdvi;
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
X-KDE-Keywords=dvi
\ No newline at end of file
......@@ -22,4 +22,4 @@ install(TARGETS okularGenerator_epub DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_epub.desktop okularEPub.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_epub.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( PROGRAMS okularApplication_epub.desktop active-documentviewer_epub.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
[Desktop Entry]
MimeType=application/epub+zip;
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
X-KDE-Keywords=epub, e-book
\ No newline at end of file
......@@ -17,4 +17,4 @@ install(TARGETS okularGenerator_fax DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_fax.desktop okularFax.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_fax.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( PROGRAMS okularApplication_fax.desktop active-documentviewer_fax.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
[Desktop Entry]
MimeType=image/fax-g3;image/g3fax;
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
......@@ -23,4 +23,4 @@ install(TARGETS okularGenerator_fb DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_fb.desktop okularFb.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_fb.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( PROGRAMS okularApplication_fb.desktop active-documentviewer_fb.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
[Desktop Entry]
MimeType=application/x-fictionbook+xml;
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
X-KDE-Keywords=FictionBook, e-book, fb2
\ No newline at end of file
......@@ -18,6 +18,6 @@ install(TARGETS okularGenerator_kimgio DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_kimgio.desktop okularKimgio.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_kimgio.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( PROGRAMS okularApplication_kimgio.desktop active-documentviewer_kimgio.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
#install( FILES gui.rc DESTINATION ${DATA_INSTALL_DIR}/okular_kimgio )
[Desktop Entry]
MimeType=image/bmp;image/x-dds;image/x-eps;image/x-exr;image/gif;image/x-hdr;image/x-ico;image/jp2;image/jpeg;video/x-mng;image/x-portable-bitmap;image/x-pcx;image/x-portable-graymap;image/png;image/x-portable-pixmap;image/x-psd;image/x-rgb;image/x-tga;image/tiff;image/x-xbitmap;image/x-xcf;image/x-xpixmap;image/x-gzeps;image/x-bzeps;
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
......@@ -37,5 +37,5 @@ install(TARGETS okularGenerator_ooo DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_ooo.desktop okularOoo.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_ooo.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( PROGRAMS okularApplication_ooo.desktop active-documentviewer_ooo.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
[Desktop Entry]
MimeType=application/vnd.oasis.opendocument.text;
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
......@@ -31,5 +31,5 @@ install(TARGETS okularGenerator_plucker DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_plucker.desktop okularPlucker.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_plucker.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( PROGRAMS okularApplication_plucker.desktop active-documentviewer_plucker.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
[Desktop Entry]
MimeType=application/prs.plucker;
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
X-KDE-Keywords=plucker
\ No newline at end of file
......@@ -45,5 +45,5 @@ install(TARGETS okularGenerator_poppler DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_poppler.desktop okularPoppler.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_pdf.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( PROGRAMS okularApplication_pdf.desktop active-documentviewer_pdf.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
[Desktop Entry]
MimeType=application/pdf;application/x-gzpdf;application/x-bzpdf;application/x-wwf;
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
X-KDE-Keywords=PDF, Portable Document Format
\ No newline at end of file
......@@ -30,6 +30,6 @@ install(TARGETS okularGenerator_ghostview DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_ghostview.desktop okularGhostview.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_ghostview.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( PROGRAMS okularApplication_ghostview.desktop active-documentviewer_ghostview.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
kde4_install_icons(${DATA_INSTALL_DIR}/okular/icons)
[Desktop Entry]
MimeType=application/postscript;image/x-eps;application/x-gzpostscript;application/x-bzpostscript;image/x-gzeps;image/x-bzeps;
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
X-KDE-Keyowrds=PS, PostScript
\ No newline at end of file
......@@ -21,5 +21,5 @@ install(TARGETS okularGenerator_tiff DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_tiff.desktop okularTiff.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_tiff.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( PROGRAMS okularApplication_tiff.desktop active-documentviewer_tiff.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
[Desktop Entry]
MimeType=image/tiff;
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
......@@ -19,6 +19,6 @@ install(TARGETS okularGenerator_xps DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_xps.desktop okularXps.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_xps.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES libokularGenerator_xps.desktop okularXps.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_xps.desktop active-documentviewer_xps.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
[Desktop Entry]
MimeType=application/oxps;application/vnd.ms-xpsdocument;
Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
Exec=active-documentviewer %u
Terminal=false
Icon=okular
Type=Application
Categories=Qt;KDE;Graphics;Office;Viewer;
InitialPreference=2
NoDisplay=true
X-KDE-Keywords=XPS
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment