register Linux MIME type to directly load replays
This commit is contained in:
8
Makefile
8
Makefile
@@ -391,6 +391,13 @@ install-linux-desktop:
|
|||||||
@$(INSTALL_DATA) packaging/linux/openra.desktop "$(DESTDIR)$(datadir)/applications"
|
@$(INSTALL_DATA) packaging/linux/openra.desktop "$(DESTDIR)$(datadir)/applications"
|
||||||
@$(INSTALL_DATA) packaging/linux/openra-editor.desktop "$(DESTDIR)$(datadir)/applications"
|
@$(INSTALL_DATA) packaging/linux/openra-editor.desktop "$(DESTDIR)$(datadir)/applications"
|
||||||
|
|
||||||
|
install-linux-mime:
|
||||||
|
@$(INSTALL_DIR) "$(DESTDIR)$(datadir)/mime/packages/"
|
||||||
|
@$(INSTALL_DATA) packaging/linux/openra-mimeinfo.xml "$(DESTDIR)$(datadir)/mime/packages/openra.xml"
|
||||||
|
|
||||||
|
@$(INSTALL_DIR) "$(DESTDIR)$(datadir)/applications"
|
||||||
|
@$(INSTALL_DATA) packaging/linux/openra-replays.desktop "$(DESTDIR)$(datadir)/applications"
|
||||||
|
|
||||||
install-linux-scripts:
|
install-linux-scripts:
|
||||||
@echo "#!/bin/sh" > openra
|
@echo "#!/bin/sh" > openra
|
||||||
@echo 'cd "$(gameinstalldir)"' >> openra
|
@echo 'cd "$(gameinstalldir)"' >> openra
|
||||||
@@ -426,6 +433,7 @@ uninstall:
|
|||||||
@-$(RM_F) "$(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/openra-editor.png"
|
@-$(RM_F) "$(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/openra-editor.png"
|
||||||
@-$(RM_F) "$(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/openra.png"
|
@-$(RM_F) "$(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/openra.png"
|
||||||
@-$(RM_F) "$(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/openra.png"
|
@-$(RM_F) "$(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/openra.png"
|
||||||
|
@-$(RM_F) "$(DESTDIR)$(datadir)/mime/packages/openra.xml"
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo to compile, run:
|
@echo to compile, run:
|
||||||
|
|||||||
11
packaging/linux/openra-mimeinfo.xml
Normal file
11
packaging/linux/openra-mimeinfo.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-openra-replay">
|
||||||
|
<icon name="openra" />
|
||||||
|
<generic-icon name="applications-games"/>
|
||||||
|
<comment>OpenRA Replay</comment>
|
||||||
|
<glob weight="60" pattern="*.rep"/>
|
||||||
|
</mime-type>
|
||||||
|
|
||||||
|
</mime-info>
|
||||||
12
packaging/linux/openra-replays.desktop
Executable file
12
packaging/linux/openra-replays.desktop
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Version=1.0
|
||||||
|
Name=OpenRA
|
||||||
|
GenericName=Real Time Strategy Game
|
||||||
|
Comment=Reimagining of early Westwood Games
|
||||||
|
Icon=openra
|
||||||
|
Exec=openra Launch.Replay=%f
|
||||||
|
Terminal=false
|
||||||
|
NoDisplay=true
|
||||||
|
Categories=Game;StrategyGame;
|
||||||
|
MimeType=application/x-openra-replay;
|
||||||
Reference in New Issue
Block a user