diff options
author | Ken Moore <moorekou@gmail.com> | 2015-11-30 10:11:38 -0500 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-11-30 10:11:38 -0500 |
commit | 84d57dd5694b68284f5ad5519339dda6f1e74f5c (patch) | |
tree | ada0924a3ce16af0877f23017bc5212c330a2f0e /lumina-desktop | |
parent | Clean up the new intel_backlight support in LuminaOS-FreeBSD. Now it should w... (diff) | |
download | lumina-84d57dd5694b68284f5ad5519339dda6f1e74f5c.tar.gz lumina-84d57dd5694b68284f5ad5519339dda6f1e74f5c.tar.bz2 lumina-84d57dd5694b68284f5ad5519339dda6f1e74f5c.zip |
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?)
Diffstat (limited to 'lumina-desktop')
-rw-r--r-- | lumina-desktop/WMProcess.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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{ |