aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-session/session.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-07-29 09:22:56 -0400
committerKen Moore <ken@pcbsd.org>2016-07-29 09:22:56 -0400
commit187b7079172d4520930ebc92d554331bc4809304 (patch)
tree7e029bbfce69f566e48b85e045c9861aac7761ca /src-qt5/core/lumina-session/session.h
parentReset the "Control Panel" entry for FreeBSD back to pccontrol.desktop. (diff)
downloadlumina-187b7079172d4520930ebc92d554331bc4809304.tar.gz
lumina-187b7079172d4520930ebc92d554331bc4809304.tar.bz2
lumina-187b7079172d4520930ebc92d554331bc4809304.zip
Add a bit of debugging output for when fluxbox/compton get prompted to reload configs.
Diffstat (limited to 'src-qt5/core/lumina-session/session.h')
-rw-r--r--src-qt5/core/lumina-session/session.h8
1 files changed, 6 insertions, 2 deletions
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();
bgstack15