[gnome-shell] dbusServices: Allow to persist services via environment



commit d7d484a8cd3d6e4334a35f134eb62b8ee7769a07
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Feb 9 19:46:37 2022 +0100

    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>

 js/dbusServices/dbusService.js | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/js/dbusServices/dbusService.js b/js/dbusServices/dbusService.js
index 3e2fde06af..8b6a0a119c 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]