Register clonk:// protocol handler on Linux

issue1247
Armin Burgmeier 2014-12-26 21:29:39 +01:00
parent 1e5d5b56da
commit f65c08f041
2 changed files with 3 additions and 0 deletions

View File

@ -1494,6 +1494,8 @@ if (NOT APPLE)
# Install new files
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/openclonk.desktop DESTINATION share/applications)
# Update the MIME cache -- this makes the clonk:// protocol handler actually work
install(CODE "execute_process(COMMAND update-desktop-database)")
# Install binaries
install(TARGETS openclonk DESTINATION games)

View File

@ -8,3 +8,4 @@ Icon=openclonk
Exec=openclonk
Categories=Game;ActionGame;
StartupNotify=true
MimeType=x-scheme-handler/clonk;