Commit f3a4b45d authored by Ahmad Samir's avatar Ahmad Samir Committed by Nate Graham
Browse files

KRDB: don't override GTK2_RC_FILES or GTK_RC_FILES evn vars if already set

BUG: 442298
FIXED-IN: 5.26
parent d10e0e4d
......@@ -101,8 +101,13 @@ static QString writableGtkrc(int version)
// -----------------------------------------------------------------------------
static void applyGtkStyles(int version)
{
const char *envVar = getenv(gtkEnvVar(version));
if (envVar) { // Already set by user, don't override it
return;
}
const QByteArray gtkrc(envVar);
QString gtkkde = writableGtkrc(version);
QByteArray gtkrc = getenv(gtkEnvVar(version));
QStringList list = QFile::decodeName(gtkrc).split(QLatin1Char(':'));
QString userHomeGtkrc = QDir::homePath() + userGtkrc(version);
if (!list.contains(userHomeGtkrc))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment