From f2f3c6847da220af56f436c5f3c3d02b39477aa3 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 1 Aug 2016 15:06:16 -0400 Subject: 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. --- src-qt5/core/lumina-open/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src-qt5/core/lumina-open') 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); -- cgit