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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2169>
This commit is contained in:
Florian Müllner 2022-02-09 19:46:37 +01:00 committed by Marge Bot
parent 9a2505f18c
commit d7d484a8cd

View File

@ -90,6 +90,9 @@ var ServiceImplementation = class {
if (!this._autoShutdown) if (!this._autoShutdown)
return; return;
if (GLib.getenv('SHELL_DBUS_PERSIST'))
return;
if (this._holdCount > 0) if (this._holdCount > 0)
return; return;