diff --git a/.gitignore b/.gitignore index afcd34e..ea73a50 100644 --- a/.gitignore +++ b/.gitignore @@ -1,42 +1 @@ -/dolphin-17.04.0.tar.xz -/dolphin-17.04.1.tar.xz -/dolphin-17.04.2.tar.xz -/dolphin-17.04.3.tar.xz -/dolphin-17.08.0.tar.xz -/dolphin-17.08.1.tar.xz -/dolphin-17.08.2.tar.xz -/dolphin-17.08.3.tar.xz -/dolphin-17.12.0.tar.xz -/dolphin-17.12.1.tar.xz -/dolphin-17.12.2.tar.xz -/dolphin-17.12.3.tar.xz -/dolphin-18.04.0.tar.xz -/dolphin-18.04.1.tar.xz -/dolphin-18.04.2.tar.xz -/dolphin-18.04.3.tar.xz -/dolphin-18.08.0.tar.xz -/dolphin-18.08.1.tar.xz -/dolphin-18.08.2.tar.xz -/dolphin-18.08.3.tar.xz -/dolphin-18.12.0.tar.xz -/dolphin-18.12.1.tar.xz -/dolphin-18.12.2.tar.xz -/dolphin-18.12.3.tar.xz -/dolphin-19.04.1.tar.xz -/dolphin-19.04.2.tar.xz -/dolphin-19.04.3.tar.xz -/dolphin-19.08.0.tar.xz -/dolphin-19.08.1.tar.xz -/dolphin-19.08.2.tar.xz -/dolphin-19.08.3.tar.xz -/dolphin-19.12.1.tar.xz -/dolphin-19.12.2.tar.xz -/dolphin-19.12.3.tar.xz -/dolphin-20.04.0.tar.xz -/dolphin-20.04.1.tar.xz -/dolphin-20.04.2.tar.xz -/dolphin-20.04.3.tar.xz -/dolphin-20.08.0.tar.xz -/dolphin-20.08.1.tar.xz -/0075-Disable-session-management-for-daemon.patch /dolphin-20.08.3.tar.xz diff --git a/0075-Disable-session-management-for-daemon.patch b/0075-Disable-session-management-for-daemon.patch new file mode 100644 index 0000000..dab856e --- /dev/null +++ b/0075-Disable-session-management-for-daemon.patch @@ -0,0 +1,43 @@ +From bf11c835ebd934d9916327262f23edb25aeb8ab8 Mon Sep 17 00:00:00 2001 +From: Nate Graham +Date: Thu, 29 Oct 2020 15:00:39 -0600 +Subject: [PATCH 75/75] Disable session management for daemon + +We don't need to autostart the daemon if it was running at logout. + +BUG: 417219 +FIXED-IN: 20.12 +--- + src/main.cpp | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/src/main.cpp b/src/main.cpp +index 9191127e5..d557f2ea0 100644 +--- a/src/main.cpp ++++ b/src/main.cpp +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + + #ifndef Q_OS_WIN + #include +@@ -132,6 +133,14 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv) + + + if (parser.isSet(QStringLiteral("daemon"))) { ++ // Disable session management for the daemonized version ++ // See https://bugs.kde.org/show_bug.cgi?id=417219 ++ auto disableSessionManagement = [](QSessionManager &sm) { ++ sm.setRestartHint(QSessionManager::RestartNever); ++ }; ++ QObject::connect(&app, &QGuiApplication::commitDataRequest, disableSessionManagement); ++ QObject::connect(&app, &QGuiApplication::saveStateRequest, disableSessionManagement); ++ + KDBusService dolphinDBusService; + DBusInterface interface; + interface.setAsDaemon(); +-- +2.28.0 +