From 84d57dd5694b68284f5ad5519339dda6f1e74f5c Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 30 Nov 2015 10:11:38 -0500 Subject: Add a couple process checks into the WM restart procedures, and add a log message for when Lumina restarts the WM (due to it crashing early?) --- lumina-desktop/WMProcess.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lumina-desktop/WMProcess.cpp') diff --git a/lumina-desktop/WMProcess.cpp b/lumina-desktop/WMProcess.cpp index 32aee8ea..3a099c06 100644 --- a/lumina-desktop/WMProcess.cpp +++ b/lumina-desktop/WMProcess.cpp @@ -27,8 +27,8 @@ WMProcess::~WMProcess(){ void WMProcess::startWM(){ inShutdown = false; QString cmd = setupWM(); - this->start(cmd); - ssaver->start("xscreensaver -no-splash"); + if(!isRunning()){this->start(cmd); } + if(ssaver->state() == QProcess::NotRunning){ ssaver->start("xscreensaver -no-splash"); } } void WMProcess::stopWM(){ @@ -121,6 +121,7 @@ void WMProcess::processFinished(int exitcode, QProcess::ExitStatus status){ emit WMShutdown(); }else{ //restart the Window manager + qDebug() << "WM Stopped Unexpectedly: Restarting it..." this->startWM(); } }else{ -- cgit