https://bugs.kde.org/show_bug.cgi?id=525600

--- Comment #3 from Christoph Cullmann <[email protected]> ---
diff --git a/apps/lib/kateapp.cpp b/apps/lib/kateapp.cpp
index 92dc79310d..550501fd79 100644
--- a/apps/lib/kateapp.cpp
+++ b/apps/lib/kateapp.cpp
@@ -210,6 +210,10 @@ void KateApp::initPreApplicationCreation(bool detach)
     if (int fd = ::open(tty, O_RDONLY); fd >= 0) {
         insideTerminal = true;
         ::close(fd);
+    } else {
+        // it makes no sense to detach if we are not in a terminal
+        // will just confuse stuff like session restore & Co. see bug 525600
+        detach = false;
     }
 #endif

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to