linux: associate replay files with taisei

This commit is contained in:
Andrei "Akari" Alexeyev 2017-09-27 02:38:05 +03:00
parent 0dba761251
commit 3bffde655f
No known key found for this signature in database
GPG key ID: 048C3D2A5648B785
6 changed files with 27 additions and 4 deletions

View file

@ -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)

View 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;

View file

@ -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.

View file

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View 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>