aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-session/session.h
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-08-02 20:51:49 +0000
committerWeblate <noreply@weblate.org>2017-08-02 20:51:49 +0000
commit0201dd4f85f96b43e57be244891685c04ac3b1bb (patch)
tree379cbf533de5a612ba4ec3d8a922fdf580d65b72 /src-qt5/core/lumina-session/session.h
parentTranslated using Weblate (Spanish) (diff)
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-0201dd4f85f96b43e57be244891685c04ac3b1bb.tar.gz
lumina-0201dd4f85f96b43e57be244891685c04ac3b1bb.tar.bz2
lumina-0201dd4f85f96b43e57be244891685c04ac3b1bb.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/lumina-session/session.h')
-rw-r--r--src-qt5/core/lumina-session/session.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src-qt5/core/lumina-session/session.h b/src-qt5/core/lumina-session/session.h
index 99127c07..caa61ad6 100644
--- a/src-qt5/core/lumina-session/session.h
+++ b/src-qt5/core/lumina-session/session.h
@@ -19,15 +19,15 @@ private:
QString id;
private slots:
void filechanged(QString path){
- qDebug() << "File Changed:" << path;
- qDebug() << " - Program:" << this->program();
+ //qDebug() << "File Changed:" << path;
+ //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" ){
- qDebug() << "Sending Fluxbox signal to reload 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...";
+ 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
@@ -40,7 +40,7 @@ public:
id=ID;
watcher = 0;
if(!watchfiles.isEmpty()){
- qDebug() << "Watch Files for changes:" << ID << watchfiles;
+ //qDebug() << "Watch Files for changes:" << ID << watchfiles;
watcher = new QFileSystemWatcher(this);
connect(watcher, SIGNAL(fileChanged(QString)), this, SLOT(filechanged(QString)) );
connect(watcher, SIGNAL(directoryChanged(QString)), this, SLOT(filechanged(QString)) );
@@ -74,5 +74,5 @@ public:
~LSession(){ }
void start(bool unified = false);
-
+
};
bgstack15