#6012 Use different synergy desktop files for v1 and v2

This commit is contained in:
Jerry (Xinyu Hou) 2017-04-25 15:47:17 +01:00
parent 485a7fff03
commit 86d6697dea
3 changed files with 17 additions and 2 deletions

View File

@ -387,7 +387,11 @@ message (STATUS "NOT configuring the v1 installer")
endif() endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
if("${VERSION_MAJOR}" STREQUAL "2")
install(FILES res/synergy2.desktop DESTINATION share/applications)
else()
install(FILES res/synergy.desktop DESTINATION share/applications) install(FILES res/synergy.desktop DESTINATION share/applications)
install(FILES res/synergy.svg DESTINATION share/icons) install(FILES res/synergy.svg DESTINATION share/icons)
endif() endif()

View File

@ -4,7 +4,7 @@ Version=1.0
Name=Synergy Name=Synergy
Comment=Keyboard and mouse sharing solution Comment=Keyboard and mouse sharing solution
Path=/usr/bin Path=/usr/bin
Exec=/usr/bin/synergy2 Exec=/usr/bin/synergy
Icon=/usr/share/icons/synergy.svg Icon=/usr/share/icons/synergy.svg
Terminal=false Terminal=false
Categories=Network; Categories=Network;

11
res/synergy2.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Synergy
Comment=Keyboard and mouse sharing solution
Path=/usr/bin
Exec=/usr/bin/synergy2
Icon=/usr/share/icons/synergy.svg
Terminal=false
Categories=Network;