mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-30 01:00:13 +02:00
listen to media key events of gnome settings daemon
* add shortcuthandler, which listens to the media key event provided by the gnome settings daemon via dbus (https://github.com/GNOME/gnome-settings-daemon/blob/master/plugins/media-keys/README.media-keys-API) * fixes TWK-983
This commit is contained in:
@@ -44,6 +44,7 @@ option(WITH_CRASHREPORTER "Build with CrashReporter" ON)
|
||||
option(WITH_BINARY_ATTICA "Enable support for downloading binary resolvers automatically" ON)
|
||||
option(LEGACY_KDE_INTEGRATION "Install tomahawk.protocol file, deprecated since 4.6.0" OFF)
|
||||
OPTION(WITH_UPOWER "Build with support for UPower events" OFF)
|
||||
OPTION(WITH_GNOMESHORTCUTHANDLER "Build with shortcut handler for GNOME" OFF)
|
||||
|
||||
IF( CMAKE_SYSTEM_PROCESSOR MATCHES "arm" )
|
||||
message(STATUS "Build of breakpad library disabled on this platform.")
|
||||
@@ -189,8 +190,10 @@ endif()
|
||||
|
||||
IF( UNIX AND NOT APPLE AND QT_QTDBUS_FOUND )
|
||||
SET( WITH_UPOWER ON )
|
||||
SET( WITH_GNOMESHORTCUTHANDLER ON )
|
||||
ENDIF( UNIX AND NOT APPLE AND QT_QTDBUS_FOUND )
|
||||
|
||||
|
||||
macro_optional_find_package(Phonon 4.5.0)
|
||||
macro_log_feature(PHONON_FOUND "Phonon" "The Phonon multimedia library" "http://phonon.kde.org" TRUE "" "")
|
||||
if(PHONON_FOUND)
|
||||
|
Reference in New Issue
Block a user