From 886a38808146e368ebe71a36d4d49e602c893b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=95=E8=87=A7?= Date: Wed, 24 Mar 2021 11:31:55 +0800 Subject: [PATCH] fix: missing startup logo --- CMakeLists.txt | 1 + resource/NetSpeed.desktop | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1bd9734..7dc6f10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,6 +43,7 @@ add_executable(${PROJECT_NAME} ${DIR} ${QM_FILES}) target_link_libraries(${PROJECT_NAME} MonitorInfo) #NetPlugins install(FILES "./resource/data/NetSpeed.json" DESTINATION "/usr/share/NetSpeed") +install(FILES "./resource/images/NetSpeed.svg" DESTINATION "/usr/share/NetSpeed") install(FILES "./resource/NetSpeed.desktop" DESTINATION "/usr/share/applications") file(GLOB TRANSLATIONS "${CMAKE_CURRENT_BINARY_DIR}/*.qm") # 要带上构建生成的路径 install(FILES ${TRANSLATIONS} diff --git a/resource/NetSpeed.desktop b/resource/NetSpeed.desktop index a74081a..be90677 100644 --- a/resource/NetSpeed.desktop +++ b/resource/NetSpeed.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Encoding=UTF-8 Exec=/usr/bin/NetSpeed/NetSpeed -Icon=/home/xmuli/project/github/NetSpeed/resource/images/NetSpeed.svg +Icon=/usr/share/NetSpeed/NetSpeed.svg Name=NetSpeed Terminal=false Type=Application