From 88a090066be5f7c0d9611b88eb8f27902e1409ed Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Wed, 10 Jul 2024 12:06:51 +0300 Subject: KSMServer: reload power-managerrc settings every time before they are needed Signed-off-by: Mavridis Philippe --- ksmserver/server.cpp | 2 ++ ksmserver/shutdown.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ksmserver/server.cpp b/ksmserver/server.cpp index 2cfb2e671..dea7c0599 100644 --- a/ksmserver/server.cpp +++ b/ksmserver/server.cpp @@ -933,6 +933,8 @@ void KSMServer::storeSession() TQStringList KSMServer::suspendOptions() { + reconfigure(); + TQStringList sopt; #ifdef WITH_TDEHWLIB diff --git a/ksmserver/shutdown.cpp b/ksmserver/shutdown.cpp index 0b711e53f..23ba4977b 100644 --- a/ksmserver/shutdown.cpp +++ b/ksmserver/shutdown.cpp @@ -330,6 +330,8 @@ bool KSMServer::suspend(int stype) if (stype == SuspendType::NotSpecified) return false; + reconfigure(); + #ifdef WITH_TDEHWLIB TDERootSystemDevice* rootDevice = hwDevices->rootSystemDevice(); if (rootDevice) { -- cgit v1.2.1