Author: lmontel
Date: Fri Feb 16 15:36:26 2007
New Revision: 121787
Added:
packages/cooker/kdebase/current/SOURCES/kdebase-3.5.6-launch-mcc.patch
Modified:
packages/cooker/kdebase/current/SPECS/kdebase.spec
Log:
Launch mcc when a peripherical is unknown
Added: packages/cooker/kdebase/current/SOURCES/kdebase-3.5.6-launch-mcc.patch
==============================================================================
--- (empty file)
+++ packages/cooker/kdebase/current/SOURCES/kdebase-3.5.6-launch-mcc.patch
Fri Feb 16 15:36:26 2007
@@ -0,0 +1,17 @@
+--- kdebase-3.5.6/kioslave/media/mediamanager/halbackend.cpp-- 2007-02-16
14:38:20.000000000 +0100
++++ kdebase-3.5.6/kioslave/media/mediamanager/halbackend.cpp 2007-02-16
14:44:39.000000000 +0100
+@@ -289,6 +289,14 @@
+ m_mediaList.addMedium(medium, allowNotification);
+ return;
+ }
++
++ //last element not found launch mcc or other program
++ KConfig config("mediamanagerrc");
++ config.setGroup("default_mdv_app");
++ QString apps = config.readEntry("mandriva", "mcc");
++ KProcess p;
++ p << apps;
++ p.start(KProcess::DontCare);
+ }
+
+ void HALBackend::RemoveDevice(const char *udi)
Modified: packages/cooker/kdebase/current/SPECS/kdebase.spec
==============================================================================
--- packages/cooker/kdebase/current/SPECS/kdebase.spec (original)
+++ packages/cooker/kdebase/current/SPECS/kdebase.spec Fri Feb 16 15:36:26 2007
@@ -41,7 +41,7 @@
Name: kdebase
Summary: K Desktop Environment - Core files
Version: 3.5.6
-Release: %mkrel 13
+Release: %mkrel 14
Epoch: 1
Group: Graphical desktop/KDE
License: GPL
@@ -254,6 +254,7 @@
Patch166: kdebase-3.5.6-kicker-button-custom.patch
Patch167: kdebase-3.5.6-kicker-button-custom2.patch
Patch168: kdebase-3.5.6-sidetop.patch
+Patch169: kdebase-3.5.6-launch-mcc.patch
BuildConflicts: lm_utils
@@ -1658,6 +1659,7 @@
%patch166 -p1 -b .kicker_custom_button
%patch167 -p1 -b .kicker_custom_button2
%patch168 -p1 -b .kicker_side_top
+%patch169 -p1 -b .launch_mcc
%build
# This is here just because patch 93. Too