[colord-kde] fix kcontrol visibility by setting X-KDE-ParentApp

Jaroslav Reznik jreznik at fedoraproject.org
Thu Mar 22 13:55:35 UTC 2012


commit 605cdd5d106b3c294e1bff96f4bb018de2fd6ff3
Author: Jaroslav Reznik <jreznik at redhat.com>
Date:   Thu Mar 22 14:55:27 2012 +0100

    fix kcontrol visibility by setting X-KDE-ParentApp

 colord-kde-0.1.0-fix-kcontrol-visibility.patch |   11 +++++++++++
 colord-kde.spec                                |   11 ++++++++++-
 2 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/colord-kde-0.1.0-fix-kcontrol-visibility.patch b/colord-kde-0.1.0-fix-kcontrol-visibility.patch
new file mode 100644
index 0000000..9ecb1ba
--- /dev/null
+++ b/colord-kde-0.1.0-fix-kcontrol-visibility.patch
@@ -0,0 +1,11 @@
+diff -up colord-kde-0.1.0/colord-kcm/kcm_colord.desktop.fix-kcontrol-visibility colord-kde-0.1.0/colord-kcm/kcm_colord.desktop
+--- colord-kde-0.1.0/colord-kcm/kcm_colord.desktop.fix-kcontrol-visibility	2012-03-21 05:43:58.000000000 +0100
++++ colord-kde-0.1.0/colord-kcm/kcm_colord.desktop	2012-03-22 14:45:44.562575105 +0100
+@@ -6,6 +6,7 @@ X-KDE-Library=kcm_colord
+ X-KDE-ServiceTypes=KCModule,KCModuleInit
+ X-KDE-System-Settings-Parent-Category=hardware
+ X-KDE-System-Settings-Parent-Category-V2=hardware
++X-KDE-ParentApp=kcontrol
+ 
+ Name=Color
+ Name[nds]=Klöör
diff --git a/colord-kde.spec b/colord-kde.spec
index 4aae3ec..c43f32f 100644
--- a/colord-kde.spec
+++ b/colord-kde.spec
@@ -1,12 +1,16 @@
 Name:           colord-kde
 Version:        0.1.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Colord support for KDE
 
 License:        GPLv2+
 URL:            http://www.kde.org/
 Source0:        http://dl.dropbox.com/u/37314029/%{name}-%{version}.tar.bz2
 
+# upstreamable patch - X-KDE-ParentApp has to be set to kcontrol to be visible
+# for kcmshell4 --list and System Settings
+Patch0:         colord-kde-0.1.0-fix-kcontrol-visibility.patch
+
 BuildRequires:  cmake kdelibs-devel colord-devel
 
 # need kcmshell4 from kde-runtime at least (from kcm_touchpad SPEC)
@@ -22,6 +26,8 @@ KDE support for colord including KDE Daemon module and System Settings module.
 %prep
 %setup -q
 
+%patch0 -p1 -b .fix-kcontrol-visibility
+
 
 %build
 mkdir -p %{_target_platform}
@@ -42,5 +48,8 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
 %{_kde4_sharedir}/kde4/services/*
 
 %changelog
+* Thu Mar 22 2012 Jaroslav Reznik <jreznik at redhat.com> - 0.1.0-2
+- fix kcontrol visibility by setting X-KDE-ParentApp
+
 * Wed Mar 21 2012 Jaroslav Reznik <jreznik at redhat.com> - 0.1.0-1
 - initial try
\ No newline at end of file


More information about the scm-commits mailing list