[Ktutorial-commits] SF.net SVN: ktutorial:[227] trunk/ktutorial/ktutorial-editor/src/CMakeLists .tx
Status: Alpha
Brought to you by:
danxuliu
From: <dan...@us...> - 2010-04-01 03:46:46
|
Revision: 227 http://ktutorial.svn.sourceforge.net/ktutorial/?rev=227&view=rev Author: danxuliu Date: 2010-04-01 03:46:38 +0000 (Thu, 01 Apr 2010) Log Message: ----------- Rename ktutorial-editor.desktop to ktutorial_editor.desktop when it is installed. It seems that "-" is used internally when creating ids for the desktop files to represent a directory, so having "-" in the name confuses the system and as result there is no entry for the desktop file in the menu. Modified Paths: -------------- trunk/ktutorial/ktutorial-editor/src/CMakeLists.txt Modified: trunk/ktutorial/ktutorial-editor/src/CMakeLists.txt =================================================================== --- trunk/ktutorial/ktutorial-editor/src/CMakeLists.txt 2010-03-31 16:27:52 UTC (rev 226) +++ trunk/ktutorial/ktutorial-editor/src/CMakeLists.txt 2010-04-01 03:46:38 UTC (rev 227) @@ -34,5 +34,10 @@ ####### Install the editor ####### install(TARGETS ktutorial-editor DESTINATION ${BIN_INSTALL_DIR}) -install(FILES ktutorial-editor.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) +# Desktop files should not contain "-" in their name, as it could confuse the +# desktop id system: +# http://standards.freedesktop.org/menu-spec/latest/go01.html#term-desktop-file-id +install(FILES ktutorial-editor.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} + RENAME ktutorial_editor.desktop +) install(FILES ktutorial-editorui.rc DESTINATION ${DATA_INSTALL_DIR}/ktutorial-editor) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |