Skip to content

Commit 9d9515e

Browse files
committed
Install icon images to /usr/share/icons on linux, updated desktop file to point to it. Fixes #882.
1 parent b85c33d commit 9d9515e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/ngscopeclient/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,19 @@ install(DIRECTORY ${CMAKE_SOURCE_DIR}/src/ngscopeclient/md
233233
install(FILES ${CMAKE_SOURCE_DIR}/src/ngscopeclient/ngscopeclient.desktop
234234
DESTINATION share/applications)
235235

236+
if(LINUX)
237+
install(FILES ${CMAKE_SOURCE_DIR}/src/ngscopeclient/16x16/app-icon.png
238+
DESTINATION share/icons/hicolor/16x16/apps RENAME ngscopeclient.png)
239+
install(FILES ${CMAKE_SOURCE_DIR}/src/ngscopeclient/32x32/app-icon.png
240+
DESTINATION share/icons/hicolor/32x32/apps RENAME ngscopeclient.png)
241+
install(FILES ${CMAKE_SOURCE_DIR}/src/ngscopeclient/48x48/app-icon.png
242+
DESTINATION share/icons/hicolor/48x48/apps RENAME ngscopeclient.png)
243+
install(FILES ${CMAKE_SOURCE_DIR}/src/ngscopeclient/128x128/app-icon.png
244+
DESTINATION share/icons/hicolor/128x128/apps RENAME ngscopeclient.png)
245+
install(FILES ${CMAKE_SOURCE_DIR}/src/ngscopeclient/256x256/app-icon.png
246+
DESTINATION share/icons/hicolor/256x256/apps RENAME ngscopeclient.png)
247+
endif()
248+
236249
# ngscopeclient Windows portable zip/MSI installer build
237250
if(WIXPATH AND WIN32)
238251
# Run the command to get /mingw64/bin full path using where gcc

src/ngscopeclient/ngscopeclient.desktop

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Type=Application
55
Exec=ngscopeclient
66
Categories=Development;Electronics
77
Terminal=false
8+
Icon=ngscopeclient

0 commit comments

Comments
 (0)