From eff08a7cbdd86a759e83fadf6bfb43c193488bf4 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Wed, 30 Nov 2011 14:57:39 +0100 Subject: [PATCH 1/2] Fix opening URLs with gvfs-open, why does firefox ignore it? why does epiphany ignore it? ... --- admin/unix/tomahawk.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/unix/tomahawk.desktop b/admin/unix/tomahawk.desktop index efd27182a..34fc92376 100644 --- a/admin/unix/tomahawk.desktop +++ b/admin/unix/tomahawk.desktop @@ -4,7 +4,7 @@ Version=1.0 Name=Tomahawk GenericName=Music Player TryExec=tomahawk -Exec=tomahawk +Exec=tomahawk %u Comment=Tomahawk - Social Music Player Icon=tomahawk Terminal=false From 4b77b9525ff4ade7bf7d98fa11d3f6b61fe45b22 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Wed, 30 Nov 2011 18:15:41 +0100 Subject: [PATCH 2/2] Don't install .protocol file anymore, if it's not enforced with LEGACY_KDE_INTEGRATION. Does anyone have Qt >= 4.7 and KDE =< 4.6.0 --- CMakeLists.txt | 1 + src/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 070db4187..f1ca859c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,7 @@ SET( TOMAHAWK_VERSION_PATCH 99 ) # build options option(BUILD_GUI "Build Tomahawk with GUI" ON) option(BUILD_RELEASE "Generate TOMAHAWK_VERSION without GIT info" OFF) +option(LEGACY_KDE_INTEGRATION "Install tomahawk.protocol file, deprecated since 4.6.0" OFF) # generate version string diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d56dcabc6..984150128 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -267,7 +267,7 @@ ENDIF( APPLE ) INSTALL( TARGETS tomahawk BUNDLE DESTINATION . RUNTIME DESTINATION bin ) -IF( UNIX AND NOT APPLE AND KDE4_INSTALLED ) #install protocol file +IF( UNIX AND NOT APPLE AND KDE4_INSTALLED AND LEGACY_KDE_INTEGRATION ) #install protocol file FILE( READ ${CMAKE_SOURCE_DIR}/admin/unix/tomahawk.protocol protocol ) STRING( REPLACE "/path/to/binary" # match this "${CMAKE_INSTALL_PREFIX}/bin/tomahawk" # this is linux (kde) so pretty safe I think