[runtime] Introduce a KGLOBALACCEL_TEST_MODE env variable

Authored by graesslin on Dec 15 2016, 5:35 PM.

Description

[runtime] Introduce a KGLOBALACCEL_TEST_MODE env variable

Summary:
The idea behind the env variable is to put kgloabalacceld into test mode
and let it operate on a in-memory KConfig instead of the normal rc file.

From auto tests in KWin we know that the
QStandardPath::setTestModeEnabled is not sufficient. If there are
multiple tests interacting with kglobalaccel they interact with each
other in ways we normally don't want.

With this env variable we could get KWin to have an in-memory kconfig
and support better testing of the global shortcuts. We can adjust the
shortcuts without having side effects on other tests.

Reviewers: Frameworks

Differential Revision: https://phabricator.kde.org/D3689

Details

Committed
graesslinDec 29 2016, 6:07 PM
Differential Revision
D3689: KGlobalAccel: [runtime] Introduce a KGLOBALACCEL_TEST_MODE env variable
Parents
R268:500041881dff: Upgrade KF5 version to 5.30.0.
Branches
Unknown
Tags
Unknown