Define XOP mime type for XBoard
authorH.G. Muller <h.g.muller@hccnet.nl>
Thu, 20 Sep 2012 16:17:55 +0000 (18:17 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Thu, 20 Sep 2012 16:17:55 +0000 (18:17 +0200)
Supply a white-knight icon for this mime type, called application/x-xboard-opt,
and a sesktop file to associate it with running XBoard with this settings file.

Makefile.am
xboard.xml

index 8d654cc..24e4165 100644 (file)
@@ -186,10 +186,13 @@ if ENABLE_UPDATE_MIMEDB
                $(XDG_DESKTOP_MENU) install --mode system --novendor xboard-pgn-viewer.desktop;\
                $(XDG_DESKTOP_MENU) install --mode system --novendor xboard-fen-viewer.desktop;\
                $(XDG_DESKTOP_MENU) install --mode system --novendor xboard-tourney.desktop;\
+               $(XDG_DESKTOP_MENU) install --mode system --novendor xboard-config.desktop;\
                $(XDG_ICON_RESOURCE) install --context mimetypes --size 32 pixmaps/board32.xpm application-x-chess-pgn;\
                $(XDG_ICON_RESOURCE) install --context mimetypes --size 32 pixmaps/cross32.xpm application-x-xboard-trn;\
+               $(XDG_ICON_RESOURCE) install --context mimetypes --size 32 pixmaps/ini32.xpm application-x-xboard-opt;\
                $(XDG_ICON_RESOURCE) install --context mimetypes --size 48 pixmaps/board48.xpm application-x-chess-pgn;\
                $(XDG_ICON_RESOURCE) install --context mimetypes --size 48 pixmaps/cross48.xpm application-x-xboard-trn;\
+               $(XDG_ICON_RESOURCE) install --context mimetypes --size 48 pixmaps/ini48.xpm application-x-xboard-opt;\
        fi
 endif
 
@@ -200,9 +203,12 @@ if ENABLE_UPDATE_MIMEDB
                $(XDG_DESKTOP_MENU) uninstall --mode system --novendor xboard-pgn-viewer.desktop;\
                $(XDG_DESKTOP_MENU) uninstall --mode system --novendor xboard-fen-viewer.desktop;\
                $(XDG_DESKTOP_MENU) uninstall --mode system --novendor xboard-tourney.desktop;\
+               $(XDG_DESKTOP_MENU) uninstall --mode system --novendor xboard-config.desktop;\
                $(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 32 board32.xpm application-x-chess-pgn;\
                $(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 32 cross32.xpm application-x-xboard-trn;\
+               $(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 32 ini32.xpm application-x-xboard-opt;\
                $(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 48 board48.xpm application-x-chess-pgn;\
                $(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 48 cross48.xpm application-x-xboard-trn;\
+               $(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 48 ini48.xpm application-x-xboard-opt;\
        fi
 endif
index c8be679..46ab574 100644 (file)
       <match value="-participants {" type="string" offset="0"/>
     </magic>
   </mime-type>
+  <mime-type type="application/x-xboard-opt">
+    <comment>XBoard options</comment>
+    <generic-icon name="application-x-xboard-opt"/>
+    <glob pattern="*.xop"/>
+    <sub-class-of type="text/plain"/>
+  </mime-type>
 </mime-info>