diff options
author | Ken Moore <ken@pcbsd.org> | 2016-08-01 15:06:16 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-08-01 15:06:16 -0400 |
commit | f2f3c6847da220af56f436c5f3c3d02b39477aa3 (patch) | |
tree | 88a4a97c9475642e614ecd1fafd618671ddd731b /src-qt5/core/lumina-open | |
parent | Move lumina-xonfig's desktop entry over to the "Settings" category. (diff) | |
download | lumina-f2f3c6847da220af56f436c5f3c3d02b39477aa3.tar.gz lumina-f2f3c6847da220af56f436c5f3c3d02b39477aa3.tar.bz2 lumina-f2f3c6847da220af56f436c5f3c3d02b39477aa3.zip |
Add in the possibility of a "nowatch" file/flag for lumina-open to avoid watching processes for crash reports and such.
This is a reimplementation of the pull request sent in by slicer69 (issue #244) which looks at the correct file location all the time.
Diffstat (limited to 'src-qt5/core/lumina-open')
-rw-r--r-- | src-qt5/core/lumina-open/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-open/main.cpp b/src-qt5/core/lumina-open/main.cpp index 7a7fef19..62a14f4c 100644 --- a/src-qt5/core/lumina-open/main.cpp +++ b/src-qt5/core/lumina-open/main.cpp @@ -349,7 +349,9 @@ int main(int argc, char **argv){ if(cmd.isEmpty()){ return 0; } //no command to run (handled internally) qDebug() << "[lumina-open] Running Cmd:" << cmd; int retcode = 0; - + //Provide an override file for never watching running processes. + if(watch){ watch = !QFile::exists( QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/nowatch" ); } + //Do the slimmer run routine if no watching needed if(!watch && path.isEmpty()){ //Nothing special about this one - just start it detached (less overhead) QProcess::startDetached(cmd); |