diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b76d35a..e8619128 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,11 +111,11 @@ endif() string (TIMESTAMP SYNERGY_BUILD_DATE "%Y%m%d" UTC) if (SYNERGY_VERSION_STAGE STREQUAL "git") - set (SYNERGY_SNAPSHOT_INFO ".${SYNERGY_BUILD_DATE}.${SYNERGY_REVISION}") - set (SYNERGY_VERSION_TAG "b${SYNERGY_BUILD_DATE}-${SYNERGY_REVISION}") + set (SYNERGY_SNAPSHOT_INFO ".unstable.${SYNERGY_REVISION}") + set (SYNERGY_VERSION_TAG "unstable.b${SYNERGY_BUILD_NUMBER}-${SYNERGY_REVISION}") else() - set (SYNERGY_SNAPSHOT_INFO "") - set (SYNERGY_VERSION_TAG "${SYNERGY_VERSION_STAGE}") + set (SYNERGY_SNAPSHOT_INFO ".${SYNERGY_VERSION_STAGE}.${SYNERGY_REVISION}") + set (SYNERGY_VERSION_TAG "${SYNERGY_VERSION_STAGE}.b${SYNERGY_BUILD_NUMBER}-${SYNERGY_REVISION}") endif() set (SYNERGY_VERSION "${SYNERGY_VERSION_MAJOR}.${SYNERGY_VERSION_MINOR}.${SYNERGY_VERSION_PATCH}") @@ -450,7 +450,7 @@ endif() # if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/rpm ${CMAKE_BINARY_DIR}/rpm) - install(FILES res/synergy.svg DESTINATION share/icons) + install(FILES res/synergy.svg DESTINATION share/icons/hicolor/scalable/apps) if("${VERSION_MAJOR}" STREQUAL "2") install(FILES res/synergy2.desktop DESTINATION share/applications) else() diff --git a/dist/rpm/synergy.spec.in b/dist/rpm/synergy.spec.in index 9edbb283..7f1c1fe4 100644 --- a/dist/rpm/synergy.spec.in +++ b/dist/rpm/synergy.spec.in @@ -20,7 +20,7 @@ Work seamlessly across Windows, macOS and Linux. %{_bindir}/synergys %{_bindir}/syntool %attr(644,-,-) %{_datarootdir}/applications/synergy.desktop -%attr(644,-,-) %{_datarootdir}/icons/synergy.svg +%attr(644,-,-) %{_datarootdir}/icons/hicolor/scalable/apps/synergy.svg %changelog * Wed Apr 26 2017 Symless diff --git a/res/synergy.desktop b/res/synergy.desktop index 809caeb8..fa987bdf 100644 --- a/res/synergy.desktop +++ b/res/synergy.desktop @@ -5,7 +5,8 @@ Name=Synergy Comment=Keyboard and mouse sharing solution Path=/usr/bin Exec=/usr/bin/synergy -Icon=/usr/share/icons/synergy.svg +Icon=synergy Terminal=false -Categories=Network; +Categories=Utility; +Keywords=keyboard;mouse;sharing;network;share; diff --git a/res/synergy2.desktop b/res/synergy2.desktop index aa191679..1a4c4948 100644 --- a/res/synergy2.desktop +++ b/res/synergy2.desktop @@ -5,7 +5,7 @@ Name=Synergy Comment=Keyboard and mouse sharing solution Path=/usr/bin Exec=/usr/bin/synergy2 -Icon=/usr/share/icons/synergy.svg +Icon=synergy Terminal=false -Categories=Network; - +Categories=Utility; +Keywords=keyboard;mouse;sharing;network;share; diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index 33806cb8..a55502dd 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -830,7 +830,9 @@ void MainWindow::stopSynergy() // HACK: deleting the object deletes the physical file, which is // bad, since it could be in use by the Windows service! - //delete m_pTempConfigFile; +#if !defined(Q_OS_WIN) + delete m_pTempConfigFile; +#endif m_pTempConfigFile = NULL; // reset so that new connects cause auto-hide. diff --git a/src/test/guitests/guitests.pro b/src/test/guitests/guitests.pro index dc9986a4..3be7e0d4 100644 --- a/src/test/guitests/guitests.pro +++ b/src/test/guitests/guitests.pro @@ -8,8 +8,7 @@ TEMPLATE = app INCLUDEPATH += ../../gui/src SOURCES += src/main.cpp \ src/VersionCheckerTests.cpp -HEADERS += src/VersionCheckerTests.h \ - src/VersionChecker.h +HEADERS += src/VersionCheckerTests.h win32 { Debug:DESTDIR = ../../../bin/Debug Release:DESTDIR = ../../../bin/Release diff --git a/src/test/guitests/src/VersionCheckerTests.cpp b/src/test/guitests/src/VersionCheckerTests.cpp index 33d92f9f..350c3e90 100644 --- a/src/test/guitests/src/VersionCheckerTests.cpp +++ b/src/test/guitests/src/VersionCheckerTests.cpp @@ -18,7 +18,7 @@ #include "VersionCheckerTests.h" #include "VersionChecker.cpp" -#include "../../gui/tmp/debug/moc_VersionChecker.cpp" +#include "../../gui/tmp/release/moc_VersionChecker.cpp" #include diff --git a/src/test/guitests/src/VersionCheckerTests.h b/src/test/guitests/src/VersionCheckerTests.h index 818aaf62..8d17af90 100644 --- a/src/test/guitests/src/VersionCheckerTests.h +++ b/src/test/guitests/src/VersionCheckerTests.h @@ -18,7 +18,7 @@ #pragma once -#include "QObject.h" +#include "qobject.h" class VersionCheckerTests : public QObject {