Skip to content

Commit

Permalink
Register clonk:// protocol handler on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
aburgm committed Dec 26, 2014
1 parent 1e5d5b5 commit f65c08f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions openclonk.desktop
Expand Up @@ -8,3 +8,4 @@ Icon=openclonk
Exec=openclonk
Categories=Game;ActionGame;
StartupNotify=true
MimeType=x-scheme-handler/clonk;

0 comments on commit f65c08f

Please sign in to comment.