Skip to content

Commit bdaa049

Browse files
committed
Define XOP mime type for XBoard
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.
1 parent ee7ad29 commit bdaa049

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Makefile.am

+6
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,13 @@ if ENABLE_UPDATE_MIMEDB
186186
$(XDG_DESKTOP_MENU) install --mode system --novendor xboard-pgn-viewer.desktop;\
187187
$(XDG_DESKTOP_MENU) install --mode system --novendor xboard-fen-viewer.desktop;\
188188
$(XDG_DESKTOP_MENU) install --mode system --novendor xboard-tourney.desktop;\
189+
$(XDG_DESKTOP_MENU) install --mode system --novendor xboard-config.desktop;\
189190
$(XDG_ICON_RESOURCE) install --context mimetypes --size 32 pixmaps/board32.xpm application-x-chess-pgn;\
190191
$(XDG_ICON_RESOURCE) install --context mimetypes --size 32 pixmaps/cross32.xpm application-x-xboard-trn;\
192+
$(XDG_ICON_RESOURCE) install --context mimetypes --size 32 pixmaps/ini32.xpm application-x-xboard-opt;\
191193
$(XDG_ICON_RESOURCE) install --context mimetypes --size 48 pixmaps/board48.xpm application-x-chess-pgn;\
192194
$(XDG_ICON_RESOURCE) install --context mimetypes --size 48 pixmaps/cross48.xpm application-x-xboard-trn;\
195+
$(XDG_ICON_RESOURCE) install --context mimetypes --size 48 pixmaps/ini48.xpm application-x-xboard-opt;\
193196
fi
194197
endif
195198

@@ -200,9 +203,12 @@ if ENABLE_UPDATE_MIMEDB
200203
$(XDG_DESKTOP_MENU) uninstall --mode system --novendor xboard-pgn-viewer.desktop;\
201204
$(XDG_DESKTOP_MENU) uninstall --mode system --novendor xboard-fen-viewer.desktop;\
202205
$(XDG_DESKTOP_MENU) uninstall --mode system --novendor xboard-tourney.desktop;\
206+
$(XDG_DESKTOP_MENU) uninstall --mode system --novendor xboard-config.desktop;\
203207
$(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 32 board32.xpm application-x-chess-pgn;\
204208
$(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 32 cross32.xpm application-x-xboard-trn;\
209+
$(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 32 ini32.xpm application-x-xboard-opt;\
205210
$(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 48 board48.xpm application-x-chess-pgn;\
206211
$(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 48 cross48.xpm application-x-xboard-trn;\
212+
$(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 48 ini48.xpm application-x-xboard-opt;\
207213
fi
208214
endif

xboard.xml

+6
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,10 @@
5858
<match value="-participants {" type="string" offset="0"/>
5959
</magic>
6060
</mime-type>
61+
<mime-type type="application/x-xboard-opt">
62+
<comment>XBoard options</comment>
63+
<generic-icon name="application-x-xboard-opt"/>
64+
<glob pattern="*.xop"/>
65+
<sub-class-of type="text/plain"/>
66+
</mime-type>
6167
</mime-info>

0 commit comments

Comments
 (0)