From fb61be320ee79e16573577440e99ad63b0fbec12 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Sun, 23 Mar 2014 21:51:00 +0100 Subject: [PATCH] fixed desktop file --- share/CMakeLists.txt | 8 ++++---- share/snorenotify.desktop.in | 6 ++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/share/CMakeLists.txt b/share/CMakeLists.txt index 2f8a041..64bf77a 100644 --- a/share/CMakeLists.txt +++ b/share/CMakeLists.txt @@ -1,10 +1,10 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/FindLibsnore.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/FindLibsnore${SNORE_SUFFIX}.cmake" @ONLY) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/FindLibsnore${SNORE_SUFFIX}.cmake" DESTINATION share/apps/cmake/modules) -if(KDE4_FOUND AND WITH_SNORE_DEAMON) - configure_file("${CMAKE_CURRENT_SOURCE_DIR}/snorenotify.desktop.in" "${CMAKE_CURRENT_BINARY_DIR}/snorenotify.desktop" @ONLY) - install(FILES "${CMAKE_CURRENT_BINARY_DIR}/snorenotify.desktop" DESTINATION ${XDG_APPS_INSTALL_DIR}) -endif(KDE4_FOUND AND WITH_SNORE_DEAMON) +if(UNIX AND WITH_SNORE_DEAMON) + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/snorenotify.desktop.in" "${CMAKE_CURRENT_BINARY_DIR}/snorenotify${SNORE_SUFFIX}.desktop" @ONLY) + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/snorenotify${SNORE_SUFFIX}.desktop" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications) +endif(UNIX AND WITH_SNORE_DEAMON) if(WIN32) add_subdirectory(snoretoast) diff --git a/share/snorenotify.desktop.in b/share/snorenotify.desktop.in index 445cfbb..b594eed 100644 --- a/share/snorenotify.desktop.in +++ b/share/snorenotify.desktop.in @@ -1,10 +1,8 @@ [Desktop Entry] Type=Application Version=@SNORE_VERSION_MAJOR@.@SNORE_VERSION_MINOR@@SNORE_VERSION_SUFFIX@ -Name=SnoreNotify +Name=SnoreNotify@SNORE_SUFFIX@ Comment=An application redirecting freedesktop notifications to a unified notification backed Icon=snore Exec=snorenotify@SNORE_SUFFIX@ -Categories=Qt;System; -X-KDE-StartupNotify=true -X-DBUS-StartupType=Unique +Categories=Qt;System; \ No newline at end of file