updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kpackagekit / kubuntu_08_ktoolinvocation.diff
blobea8c72a694b15a7b3997d8916039e18f0d759a45
1 Description: Make applications launched from the update icon properly themed.
2 Bug-Ubuntu: https://bugs.launchpad.net/707916
3 Author: Felix Geyer <debfx-pkg@fobos.de>
5 --- kpackagekit-0.6.3.3.orig/SmartIcon/KpkUpdateIcon.cpp
6 +++ kpackagekit-0.6.3.3/SmartIcon/KpkUpdateIcon.cpp
7 @@ -31,6 +31,7 @@
8 #include <KConfigGroup>
9 #include <KActionCollection>
10 #include <KMenu>
11 +#include <KToolInvocation>
13 #include <KDebug>
15 @@ -53,7 +54,7 @@ KpkUpdateIcon::~KpkUpdateIcon()
17 void KpkUpdateIcon::showSettings()
19 - QProcess::execute("kpackagekit", QStringList() << "--settings");
20 + KToolInvocation::kdeinitExec("kpackagekit", QStringList() << "--settings");
23 // refresh the cache and try to update,
24 @@ -265,7 +266,7 @@ void KpkUpdateIcon::autoUpdatesFinished(
26 void KpkUpdateIcon::showUpdates()
28 - QProcess::execute("kpackagekit", QStringList() << "--updates");
29 + KToolInvocation::kdeinitExec("kpackagekit", QStringList() << "--updates");
32 void KpkUpdateIcon::removeStatusNotifierItem()