From 97b341f015abede4f6ebcd5f9cdb256c840e5a34 Mon Sep 17 00:00:00 2001 From: Alf Henrik Sauge Date: Wed, 29 Jul 2026 20:07:04 +0200 Subject: [PATCH] Fix issue on Linux with last session not being restored in a GUI context --- src/app/Application.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/Application.cpp b/src/app/Application.cpp index 4c0e0646e..dadc24b1f 100644 --- a/src/app/Application.cpp +++ b/src/app/Application.cpp @@ -41,6 +41,7 @@ bool Application::mIsInTest = false; #if defined(Q_OS_LINUX) #include +#include #elif defined(Q_OS_MAC) #include @@ -283,7 +284,7 @@ void Application::autoUpdate() { } bool Application::restoreWindows() { -#ifdef Q_OS_MAC +#if defined(Q_OS_MAC) || defined(Q_OS_LINUX) // Check for connection to a terminal. if (!isatty(fileno(stdin))) QDir::setCurrent(Settings::appDir().path());