From 187b7079172d4520930ebc92d554331bc4809304 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 29 Jul 2016 09:22:56 -0400 Subject: Add a bit of debugging output for when fluxbox/compton get prompted to reload configs. --- src-qt5/core/lumina-session/session.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src-qt5/core/lumina-session/session.h') diff --git a/src-qt5/core/lumina-session/session.h b/src-qt5/core/lumina-session/session.h index dee31502..7263a3a7 100644 --- a/src-qt5/core/lumina-session/session.h +++ b/src-qt5/core/lumina-session/session.h @@ -23,8 +23,12 @@ private slots: qDebug() << " - Program:" << this->program(); if(watcher==0){ return; } //just in case if(this->state()==QProcess::Running){ - if(this->program().section(" ",0,0).section("/",-1) == "fluxbox" ){ ::kill(this->pid(), SIGUSR2); } //Fluxbox needs SIGUSR2 to reload it's configs - else if(this->program().section(" ",0,0).section("/",-1) == "compton" ){ ::kill(this->pid(), SIGUSR1); } //Compton needs SIGUSR1 to reload it's configs + if(this->program().section(" ",0,0).section("/",-1) == "fluxbox" ){ + qDebug() << "Sending Fluxbox signal to reload configs..."; + ::kill(this->pid(), SIGUSR2); } //Fluxbox needs SIGUSR2 to reload it's configs + else if(this->program().section(" ",0,0).section("/",-1) == "compton" ){ + qDebug() << "Sending Compton signal to reload configs..."; + ::kill(this->pid(), SIGUSR1); } //Compton needs SIGUSR1 to reload it's configs } //Now make sure this file/dir was not removed from the watcher QStringList watched; watched << watcher->files() << watcher->directories(); -- cgit