Commit a1d44475 authored by David Edmundson's avatar David Edmundson

Handle spawning kinfocenter with a full path

/usr/bin/kinfocenter doesn't match "kinfocenter"

it also cannot be using as the binaryName in the rest of this method.

Test Plan:

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: pino, ngraham, plasma-devel

Tags: #plasma

Differential Revision:
parent 5bd6ad17
......@@ -36,11 +36,12 @@ int main( int argc, char *argv[] )
// Make sure the binary name is either kinfocenter or systemsettings,
// Anything else will just be considered as "systemsettings"
QString binaryName = QString::fromUtf8(argv[0]);
BaseMode::ApplicationMode mode = BaseMode::InfoCenter;
if (binaryName != QStringLiteral("kinfocenter")) {
binaryName = QStringLiteral("systemsettings");
mode = BaseMode::SystemSettings;
const QString executableName = QString::fromUtf8(argv[0]);
QString binaryName = QStringLiteral("systemsettings");
BaseMode::ApplicationMode mode = BaseMode::SystemSettings;
if (executableName.endsWith(QLatin1String("kinfocenter"))) {
binaryName = QStringLiteral("kinfocenter");
mode = BaseMode::InfoCenter;
//exec is systemsettings5, but we need the QPT to use the right config from the qApp constructor
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment