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