Package: kdiff3
Version: 0.9.95-2
Severity: normal
Architecture: any

scenario:
in KDE4, using kdiff3 from the konqueror menu plugin,

problem:
when the kdiff3 application starts, konqueror is locked
until kdiff3 is closed.

solution:
run kdiff3 in a detached process.
the attached patch does it,

Regards,

Jordi Pujol
Live never ending Tale,
Gnu/Linux Live forever!
http://livenet.selfip.com
--- kdiff3-0.9.95/kdiff3plugin-QT4/kdiff3plugin.cpp	2008-10-26 22:55:20.000000000 +0100
+++ kdiff3-0.9.95-lnet1/kdiff3plugin-QT4/kdiff3plugin.cpp	2009-12-23 15:59:37.000000000 +0100
@@ -184,7 +184,7 @@
       QStringList args;
       args << s_pHistory->front();
       args << m_list.front();
-      KProcess::execute("kdiff3", args);
+      KProcess::startDetached("kdiff3", args);
    }
 }
 
@@ -196,7 +196,7 @@
       QStringList args;
       args << pAction->text();
       args << m_list.front();
-      KProcess::execute ("kdiff3", args);
+      KProcess::startDetached ("kdiff3", args);
    }
 }
 
@@ -207,7 +207,7 @@
       QStringList args;
       args << m_list.front();
       args << m_list.back();
-      KProcess::execute ("kdiff3", args);
+      KProcess::startDetached ("kdiff3", args);
    }
 }
 
@@ -219,7 +219,7 @@
       args << m_list[0];
       args << m_list[1];
       args << m_list[2];
-      KProcess::execute ("kdiff3", args);
+      KProcess::startDetached ("kdiff3", args);
    }
 }
 
@@ -231,7 +231,7 @@
       args << s_pHistory->front();
       args << m_list.front();
       args << ( "-o" + m_list.front() );
-      KProcess::execute ("kdiff3", args);
+      KProcess::startDetached ("kdiff3", args);
    }
 }
 
@@ -244,7 +244,7 @@
       args << (*s_pHistory)[0];
       args << m_list.front();
       args << ("-o" + m_list.front());
-      KProcess::execute ("kdiff3", args);
+      KProcess::startDetached ("kdiff3", args);
    }
 }
 

Reply via email to