diff --git a/CMakeLists.txt b/CMakeLists.txt index 5331ca2d..324c3d8b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -387,7 +387,11 @@ message (STATUS "NOT configuring the v1 installer") endif() if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") - install(FILES res/synergy.desktop DESTINATION share/applications) + 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.svg DESTINATION share/icons) endif() diff --git a/res/synergy.desktop b/res/synergy.desktop index aa191679..809caeb8 100644 --- a/res/synergy.desktop +++ b/res/synergy.desktop @@ -4,7 +4,7 @@ Version=1.0 Name=Synergy Comment=Keyboard and mouse sharing solution Path=/usr/bin -Exec=/usr/bin/synergy2 +Exec=/usr/bin/synergy Icon=/usr/share/icons/synergy.svg Terminal=false Categories=Network; diff --git a/res/synergy2.desktop b/res/synergy2.desktop new file mode 100644 index 00000000..aa191679 --- /dev/null +++ b/res/synergy2.desktop @@ -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; +