This forum has been archived. All content is frozen. Please use KDE Discuss instead.

test_kconf_update does not warn about failing to execute

Tags: None
(comma "," separated)
User avatar
yecril71pl
Registered Member
Posts
16
Karma
0
OS
I am in an environment when kconf_update may be non functional and I would like to get a warning about that.
I have devised the following correction:

Code: Select all
static void runKConfUpdate(const QString &updPath)
{
    QString exePath = KStandardDirs::findExe("kconf_update");
    KProcess p; char msgbuf [BUFSIZ];
    if (0) KProcess::execute(QStringList() << exePath << "--debug" << updPath);
    p .setProgram (QStringList() << exePath << "--debug" << updPath);
    p .execute ();
    while (p .readLine (msgbuf, BUFSIZ) > 0) QWARN (msgbuf);
   
}


What do you think?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I would recommend asking questions such as this one on the kde-core-devel or kde-frameworks-devel mailing lists instead, as the people there are the most likely to know if this solution will be workable.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]