From dd6f0b9fb59d8783768124d62afea2d277af5f00 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 4 Apr 2016 12:48:40 +0800 Subject: [PATCH 1/4] Add install categories This will make chewing-editor placed to the correct menu after installing. Refer to: https://specifications.freedesktop.org/menu-spec/latest/ --- chewing-editor.desktop.in | 1 + 1 file changed, 1 insertion(+) diff --git a/chewing-editor.desktop.in b/chewing-editor.desktop.in index 12f178b..67b890c 100644 --- a/chewing-editor.desktop.in +++ b/chewing-editor.desktop.in @@ -5,3 +5,4 @@ Name=Chewing Editor Comment=Chewing Userphrase Editor Exec=chewing-editor Icon=chewing-editor +Categories=Utility;TextTools;Qt; From 7c2bb9e4e36ebd6f8954d3a678cc43f00026dbbd Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 4 Apr 2016 12:57:13 +0800 Subject: [PATCH 2/4] Add locale translation for Name, Comment. Refer to https://specifications.freedesktop.org/desktop-entry-spec/latest/index.html, "Localized values for keys" section. --- chewing-editor.desktop.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chewing-editor.desktop.in b/chewing-editor.desktop.in index 67b890c..5ea2838 100644 --- a/chewing-editor.desktop.in +++ b/chewing-editor.desktop.in @@ -6,3 +6,7 @@ Comment=Chewing Userphrase Editor Exec=chewing-editor Icon=chewing-editor Categories=Utility;TextTools;Qt; + +# Translation +Name[zh_TW]=Chewing Editor +Comment[zh_TW]=新酷音詞庫編輯器 From 0099407b3d98dd1a0d3dc4493eec8824c472c0ae Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 4 Apr 2016 13:29:39 +0800 Subject: [PATCH 3/4] Fix typo in installation path --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ccb233..d1c2547 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,7 +106,7 @@ configure_file( install( FILES ${PROJECT_BINARY_DIR}/chewing-editor.desktop - DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/application + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications ) include_directories( From 1eb59116ba6ccc4179e15366bb934d057afff024 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 4 Apr 2016 13:37:07 +0800 Subject: [PATCH 4/4] Install 256x256 icon Closes #163. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d1c2547..7f398a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,6 +219,7 @@ install(PROGRAMS ${CMAKE_BINARY_DIR}/chewing-editor DESTINATION ${CMAKE_INSTALL_ # icon install(FILES ${CMAKE_SOURCE_DIR}/share/icons/chewing-editor.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps) +install(FILES ${CMAKE_SOURCE_DIR}/rc/chewing-editor.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/256/apps) # manpage find_program(HELP2MAN help2man)