nicolasfella created this revision. nicolasfella added a reviewer: Plasma. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. nicolasfella requested review of this revision.
REVISION SUMMARY filePath() returns the full path to the config file. readFile() then prepends configsDirPath() to the path, leading to a garbled file path and making it impossible to load the right file. We should instead just pass id() + _lidOpen to readFile. TEST PLAN Connected a monitor to my laptop. Closed and reopened the lid. Before: Laptop screen was off. Needed turning on in the KCM. After: Laptop screen is on. Both X11 and Wayland REPOSITORY R104 KScreen BRANCH fixit REVISION DETAIL https://phabricator.kde.org/D24719 AFFECTED FILES kded/config.cpp To: nicolasfella, #plasma Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart