Don't update MIME cache on install (#1618)

The install target is used both for manual installation and for
packaging. Updating the packager's MIME cache isn't very useful. Show a
message instead which reminds both packagers and regular users to run
the command.
install-platforms
Lukas Werling 2017-08-12 16:56:14 +02:00
parent 07a945ee8e
commit e59205c2f3
1 changed files with 1 additions and 1 deletions

View File

@ -1532,7 +1532,7 @@ if(NOT HEADLESS_ONLY)
# 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(CODE "message(\"Note: Run update-desktop-database to install clonk:// protocol handler\")")
# Install software center metadata
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/openclonk.appdata.xml DESTINATION share/appdata)