summaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2016-01-11 12:38:32 +0100
committerPierre Ossman <ossman@cendio.se>2016-01-11 12:38:32 +0100
commit35449991b52f1d88cc7ca72d171a184eade04167 (patch)
tree96c44d594c03312e14e533cb08e97d1bc2826fc5 /vncviewer
parenta6a52a414902fbebede9c98c446753eedda91987 (diff)
downloadtigervnc-35449991b52f1d88cc7ca72d171a184eade04167.tar.gz
tigervnc-35449991b52f1d88cc7ca72d171a184eade04167.zip
Install viewer .desktop file and icons on all Unix systems
These files are not Red Hat or Ubuntu specific, so install them on all Unix systems where the viewer is installed.
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/CMakeLists.txt6
-rw-r--r--vncviewer/vncviewer.desktop.in11
2 files changed, 17 insertions, 0 deletions
diff --git a/vncviewer/CMakeLists.txt b/vncviewer/CMakeLists.txt
index de9da8fb..f2a0aca0 100644
--- a/vncviewer/CMakeLists.txt
+++ b/vncviewer/CMakeLists.txt
@@ -55,4 +55,10 @@ endif()
install(TARGETS vncviewer DESTINATION ${BIN_DIR})
if(UNIX)
install(FILES vncviewer.man DESTINATION ${MAN_DIR}/man1 RENAME vncviewer.1)
+ configure_file(vncviewer.desktop.in vncviewer.desktop)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/vncviewer.desktop DESTINATION ${DATA_DIR}/applications)
+ foreach(res 16 22 24 32 48)
+ install(FILES ../media/icons/tigervnc_${res}.png DESTINATION ${DATA_DIR}/icons/hicolor/${res}x${res}/apps RENAME tigervnc.png)
+ endforeach()
+ install(FILES ../media/icons/tigervnc.svg DESTINATION ${DATA_DIR}/icons/hicolor/scalable/apps)
endif()
diff --git a/vncviewer/vncviewer.desktop.in b/vncviewer/vncviewer.desktop.in
new file mode 100644
index 00000000..32184b47
--- /dev/null
+++ b/vncviewer/vncviewer.desktop.in
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=TigerVNC Viewer
+Name[fr]=Visionneur TigerVNC
+Comment=Connect to VNC server and display remote desktop
+Comment[fr]=Se connecter à un serveur VNC et afficher le bureau distant
+Exec=@BIN_DIR@/vncviewer
+Icon=tigervnc
+Terminal=false
+Type=Application
+StartupWMClass=TigerVNC Viewer: Connection Details
+Categories=Network;RemoteAccess;