From d7d484a8cd3d6e4334a35f134eb62b8ee7769a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 9 Feb 2022 19:46:37 +0100 Subject: [PATCH] dbusServices: Allow to persist services via environment Auto-shutdown prevents debugging a service with tools like d-feet, so allow turning it off with an environment variable. Part-of: --- js/dbusServices/dbusService.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/dbusServices/dbusService.js b/js/dbusServices/dbusService.js index 3e2fde06a..8b6a0a119 100644 --- a/js/dbusServices/dbusService.js +++ b/js/dbusServices/dbusService.js @@ -90,6 +90,9 @@ var ServiceImplementation = class { if (!this._autoShutdown) return; + if (GLib.getenv('SHELL_DBUS_PERSIST')) + return; + if (this._holdCount > 0) return;