From f65c08f04131c1c08f0d5fe1d0d0e0b50a46680f Mon Sep 17 00:00:00 2001 From: Armin Burgmeier Date: Fri, 26 Dec 2014 21:29:39 +0100 Subject: [PATCH] Register clonk:// protocol handler on Linux --- CMakeLists.txt | 2 ++ openclonk.desktop | 1 + 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 16305e07e4..c8d2328fef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/openclonk.desktop b/openclonk.desktop index edc50102f0..8374f30973 100644 --- a/openclonk.desktop +++ b/openclonk.desktop @@ -8,3 +8,4 @@ Icon=openclonk Exec=openclonk Categories=Game;ActionGame; StartupNotify=true +MimeType=x-scheme-handler/clonk;