diff options
Diffstat (limited to 'src-qt5/core/lumina-session')
-rw-r--r-- | src-qt5/core/lumina-session/session.h | 8 |
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(); |