register the openra:// protocol to join games

This commit is contained in:
Matthias Mailänder
2014-12-26 16:18:57 +01:00
parent da2b7e687c
commit b518e5949c
3 changed files with 20 additions and 0 deletions

View File

@@ -394,6 +394,7 @@ install-linux-mime:
@$(INSTALL_DATA) packaging/linux/openra-mimeinfo.xml "$(DESTDIR)$(datadir)/mime/packages/openra.xml"
@$(INSTALL_DIR) "$(DESTDIR)$(datadir)/applications"
@$(INSTALL_DATA) packaging/linux/openra-join-servers.desktop "$(DESTDIR)$(datadir)/applications"
@$(INSTALL_DATA) packaging/linux/openra-replays.desktop "$(DESTDIR)$(datadir)/applications"
install-linux-appdata:

View 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.URI=%U
Terminal=false
NoDisplay=true
Categories=Game;StrategyGame;
MimeType=x-scheme-handler/openra;

View File

@@ -8,4 +8,11 @@
<glob weight="60" pattern="*.orarep"/>
</mime-type>
<mime-type type="x-scheme-handler/openra">
<icon name="openra" />
<generic-icon name="applications-games"/>
<comment>OpenRA connect to server scheme</comment>
<glob weight="60" pattern="openra://*"/>
</mime-type>
</mime-info>