linux: associate replay files with taisei
This commit is contained in:
parent
0dba761251
commit
3bffde655f
6 changed files with 27 additions and 4 deletions
|
@ -139,8 +139,7 @@ else()
|
|||
set(DATA_DIR "share/taisei")
|
||||
set(DOC_DIR "share/doc/taisei")
|
||||
|
||||
install(FILES "taisei.desktop" DESTINATION "share/applications")
|
||||
install(FILES "taisei.png" DESTINATION "share/icons/hicolor/128x128/apps")
|
||||
install(DIRECTORY "xdg/" DESTINATION ".")
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
|
|
13
xdg/share/applications/taisei-replay-viewer.desktop
Normal file
13
xdg/share/applications/taisei-replay-viewer.desktop
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.1
|
||||
Name=Taisei (replay viewer)
|
||||
GenericName=Bullet hell shoot ’em up game
|
||||
Icon=taisei
|
||||
Terminal=false
|
||||
NoDisplay=true
|
||||
TryExec=taisei
|
||||
Exec=taisei --replay %f
|
||||
Categories=Game;ArcadeGame;
|
||||
Comment=An open-source Tōhō clone.
|
||||
MimeType=application/x-taisei-replay;
|
|
@ -1,10 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.0
|
||||
Version=1.1
|
||||
Name=Taisei
|
||||
GenericName=Bullet hell shoot ’em up game
|
||||
Icon=taisei
|
||||
Exec=taisei
|
||||
Terminal=false
|
||||
Exec=taisei
|
||||
Categories=Game;ArcadeGame;
|
||||
Comment=An open-source Tōhō clone.
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
BIN
xdg/share/icons/hicolor/256x256/mimetypes/taisei-replay.png
Normal file
BIN
xdg/share/icons/hicolor/256x256/mimetypes/taisei-replay.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
11
xdg/share/mime/packages/taisei.xml
Normal file
11
xdg/share/mime/packages/taisei.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" ?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/x-taisei-replay">
|
||||
<comment>Taisei replay</comment>
|
||||
<magic>
|
||||
<match offset="0" type="string" value="\x68\x6f\x6e\x6f\xe2\x9d\xa4\x75\x6d\x69"/>
|
||||
</magic>
|
||||
<glob pattern="*.tsr"/>
|
||||
<icon name="taisei-replay"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
Loading…
Reference in a new issue