Each plugin installs a application desktop so that the supported mimetypes are exactly the ones supported by the plugins installed

svn path=/trunk/KDE/kdegraphics/okular/; revision=651194
This commit is contained in:
Albert Astals Cid 2007-04-06 21:47:06 +00:00
parent e46e391e7d
commit 55a67a082e
25 changed files with 169 additions and 3 deletions

View file

@ -36,4 +36,5 @@ install(TARGETS okularGenerator_chmlib DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_chmlib.desktop okularChm.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES okularApplication_chm.desktop DESTINATION ${XDG_APPS_DIR} )

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
MimeType=application/x-chm
Terminal=false
Name=okular
GenericName=Document Viewer
Exec=okular %U %i -caption "%c"
Icon=okular
Type=Application
DocPath=okular/index.html
InitialPreference=7
Categories=Qt;KDE;Graphics;Viewer;
NoDisplay=true

View file

@ -23,4 +23,5 @@ install(TARGETS okularGenerator_comicbook DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_comicbook.desktop okularComicbook.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES okularApplication_comicbook.desktop DESTINATION ${XDG_APPS_DIR} )

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
MimeType=application/x-cbz;application/x-cbr;
Terminal=false
Name=okular
GenericName=Document Viewer
Exec=okular %U %i -caption "%c"
Icon=okular
Type=Application
DocPath=okular/index.html
InitialPreference=7
Categories=Qt;KDE;Graphics;Viewer;
NoDisplay=true

View file

@ -24,5 +24,6 @@ install(TARGETS okularGenerator_djvu DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_djvu.desktop okularDjvu.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES okularApplication_djvu.desktop DESTINATION ${XDG_APPS_DIR} )

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
MimeType=image/vnd.djvu
Terminal=false
Name=okular
GenericName=Document Viewer
Exec=okular %U %i -caption "%c"
Icon=okular
Type=Application
DocPath=okular/index.html
InitialPreference=7
Categories=Qt;KDE;Graphics;Viewer;
NoDisplay=true

View file

@ -61,4 +61,5 @@ install(TARGETS okularGenerator_dvi DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_dvi.desktop okularDvi.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES okularApplication_dvi.desktop DESTINATION ${XDG_APPS_DIR} )

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
MimeType=application/x-dvi
Terminal=false
Name=okular
GenericName=Document Viewer
Exec=okular %U %i -caption "%c"
Icon=okular
Type=Application
DocPath=okular/index.html
InitialPreference=7
Categories=Qt;KDE;Graphics;Viewer;
NoDisplay=true

View file

@ -24,3 +24,4 @@ install(TARGETS okularGenerator_fb DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_fb.desktop okularFb.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES okularApplication_fb.desktop DESTINATION ${XDG_APPS_DIR} )

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
MimeType=application/x-fb
Terminal=false
Name=okular
GenericName=Document Viewer
Exec=okular %U %i -caption "%c"
Icon=okular
Type=Application
DocPath=okular/index.html
InitialPreference=7
Categories=Qt;KDE;Graphics;Viewer;
NoDisplay=true

View file

@ -53,4 +53,5 @@ install(TARGETS okularGenerator_ghostview DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_ghostview.desktop okularGhostview.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES okularApplication_ghostview.desktop DESTINATION ${XDG_APPS_DIR} )

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
MimeType=application/postscript;image/x-eps;
Terminal=false
Name=okular
GenericName=Document Viewer
Exec=okular %U %i -caption "%c"
Icon=okular
Type=Application
DocPath=okular/index.html
InitialPreference=7
Categories=Qt;KDE;Graphics;Viewer;
NoDisplay=true

View file

@ -19,4 +19,5 @@ install(TARGETS okularGenerator_kimgio DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_kimgio.desktop okularKimgio.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES okularApplication_kimgio.desktop DESTINATION ${XDG_APPS_DIR} )

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
MimeType=image/bmp;image/x-dds;image/x-eps;image/x-exr;image/gif;image/x-hdr;image/x-ico;image/jpeg2000;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;
Terminal=false
Name=okular
GenericName=Document Viewer
Exec=okular %U %i -caption "%c"
Icon=okular
Type=Application
DocPath=okular/index.html
InitialPreference=7
Categories=Qt;KDE;Graphics;Viewer;
NoDisplay=true

View file

@ -27,4 +27,5 @@ install(TARGETS okularGenerator_ooo DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_ooo.desktop okularOoo.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES okularApplication_ooo.desktop DESTINATION ${XDG_APPS_DIR} )

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
MimeType=application/vnd.oasis.opendocument.text
Terminal=false
Name=okular
GenericName=Document Viewer
Exec=okular %U %i -caption "%c"
Icon=okular
Type=Application
DocPath=okular/index.html
InitialPreference=7
Categories=Qt;KDE;Graphics;Viewer;
NoDisplay=true

View file

@ -31,4 +31,5 @@ install(TARGETS okularGenerator_plucker DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_plucker.desktop okularPlucker.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES okularApplication_plucker.desktop DESTINATION ${XDG_APPS_DIR} )

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
MimeType=application/prs.plucker
Terminal=false
Name=okular
GenericName=Document Viewer
Exec=okular %U %i -caption "%c"
Icon=okular
Type=Application
DocPath=okular/index.html
InitialPreference=7
Categories=Qt;KDE;Graphics;Viewer;
NoDisplay=true

View file

@ -30,4 +30,5 @@ install(TARGETS okularGenerator_poppler DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_poppler.desktop okularPoppler.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES okularApplication_pdf.desktop DESTINATION ${XDG_APPS_DIR} )

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
MimeType=application/pdf
Terminal=false
Name=okular
GenericName=Document Viewer
Exec=okular %U %i -caption "%c"
Icon=okular
Type=Application
DocPath=okular/index.html
InitialPreference=7
Categories=Qt;KDE;Graphics;Viewer;
NoDisplay=true

View file

@ -22,4 +22,5 @@ install(TARGETS okularGenerator_tiff DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_tiff.desktop okularTiff.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES okularApplication_tiff.desktop DESTINATION ${XDG_APPS_DIR} )

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
MimeType=image/tiff
Terminal=false
Name=okular
GenericName=Document Viewer
Exec=okular %U %i -caption "%c"
Icon=okular
Type=Application
DocPath=okular/index.html
InitialPreference=7
Categories=Qt;KDE;Graphics;Viewer;
NoDisplay=true

View file

@ -20,5 +20,6 @@ install(TARGETS okularGenerator_xps DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES libokularGenerator_xps.desktop okularXps.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES libokularGenerator_xps.desktop okularXps.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES okularApplication_xps.desktop DESTINATION ${XDG_APPS_DIR} )

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
MimeType=application/vnd.ms-xpsdocument
Terminal=false
Name=okular
GenericName=Document Viewer
Exec=okular %U %i -caption "%c"
Icon=okular
Type=Application
DocPath=okular/index.html
InitialPreference=7
Categories=Qt;KDE;Graphics;Viewer;
NoDisplay=true

View file

@ -1,6 +1,5 @@
[Desktop Entry]
Encoding=UTF-8
MimeType=application/pdf
Terminal=false
Name=okular
GenericName=Document Viewer
@ -14,4 +13,3 @@ Type=Application
DocPath=okular/index.html
InitialPreference=7
Categories=Qt;KDE;Graphics;Viewer;