diff --git a/kcms/krdb/krdb.cpp b/kcms/krdb/krdb.cpp --- a/kcms/krdb/krdb.cpp +++ b/kcms/krdb/krdb.cpp @@ -29,6 +29,9 @@ #include #include #include +#include +#include +#include #include #include @@ -981,5 +984,13 @@ if (exportGtkColors) { saveGtkColors(); + QString path = QLibraryInfo::location(QLibraryInfo::LibraryExecutablesPath); + int pos = path.lastIndexOf(QChar('/')); + path = path.left(pos); + pos = path.lastIndexOf(QChar('/')); + path = path.left(pos); + if (!QFile::exists(path + "/libexec/breeze-gtk/color_gtk2_theme")) + return; + QProcess::startDetached(path + "/libexec/breeze-gtk/color_gtk2_theme"); } }