From 79573c7f1241225922bee992f2caaf730cfbe3ac Mon Sep 17 00:00:00 2001 From: totaam Date: Sun, 9 Oct 2022 21:37:39 +0700 Subject: [PATCH 3/3] Revert "don't use GLib directly" This reverts commit bc8bf26c44d1b151d709232460483f5432f79f5b. --- xpra/server/mixins/child_command_server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xpra/server/mixins/child_command_server.py b/xpra/server/mixins/child_command_server.py index 8dea3c1f7..1c2a60e27 100644 --- a/xpra/server/mixins/child_command_server.py +++ b/xpra/server/mixins/child_command_server.py @@ -11,6 +11,8 @@ import os.path from time import monotonic from subprocess import Popen +from gi.repository import GLib + from xpra.platform.features import COMMAND_SIGNALS from xpra.child_reaper import getChildReaper, reaper_cleanup from xpra.os_util import ( @@ -72,7 +74,7 @@ class ChildCommandServer(StubServerMixin): #even if __init__ is called multiple times: if not getattr(self, "late_start_requested", False): self.late_start_requested = True - self.idle_add(self.late_start) + GLib.idle_add(self.late_start) def late_start(self): def do_late_start(): -- 2.38.0