f7a7d9
From c9c13747e575fe2ce398cec200284d0318aaece3 Mon Sep 17 00:00:00 2001
f7a7d9
From: Michael Catanzaro <mcatanzaro@gnome.org>
f7a7d9
Date: Wed, 29 Apr 2020 13:44:41 -0500
f7a7d9
Subject: [PATCH] Revert "Shutdown the daemon on idle by default"
f7a7d9
f7a7d9
This reverts commit 0c84d71509e851db20445c747529bd7d3724f081.
f7a7d9
f7a7d9
This broke the end session dialog in GNOME Shell.
f7a7d9
f7a7d9
I thought I had that fixed by changing GNOME Shell to autostart
f7a7d9
PackageKit when it is not already running:
f7a7d9
f7a7d9
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1104
f7a7d9
f7a7d9
But turns out, there are more problems. The update fails if the user has
f7a7d9
used dnf since PackageKit last quit, a scenario I did not test. It also
f7a7d9
results in GNOME Software getting confused about what software is
f7a7d9
installed and what software is not. The issues are discussed here:
f7a7d9
f7a7d9
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1227#note_784327
f7a7d9
f7a7d9
It's still desirable to shut down automatically, but it requires more
f7a7d9
planning. And shutting down GNOME Software itself is frankly more
f7a7d9
important, since it uses a lot more RAM than packagekitd.
f7a7d9
---
f7a7d9
 src/pk-main.c | 2 --
f7a7d9
 1 file changed, 2 deletions(-)
f7a7d9
f7a7d9
diff --git a/src/pk-main.c b/src/pk-main.c
f7a7d9
index 7a0bbd199..5791c5fef 100644
f7a7d9
--- a/src/pk-main.c
f7a7d9
+++ b/src/pk-main.c
f7a7d9
@@ -178,8 +178,6 @@ main (int argc, char *argv[])
f7a7d9
 
f7a7d9
 	/* after how long do we timeout? */
f7a7d9
 	exit_idle_time = g_key_file_get_integer (conf, "Daemon", "ShutdownTimeout", NULL);
f7a7d9
-	if (exit_idle_time == 0)
f7a7d9
-		exit_idle_time = 300;
f7a7d9
 	g_debug ("daemon shutdown set to %i seconds", exit_idle_time);
f7a7d9
 
f7a7d9
 	/* override the backend name */