- switch exit to sigterm to sidestep threaded exit

This commit is contained in:
trigg 2024-07-09 02:04:53 +01:00
parent bda6f7e3e7
commit 24e815b85e

View file

@ -81,8 +81,8 @@ class Discover:
self.connection.connect()
self.audio_assist = DiscoverAudioAssist(self)
rpc_file = Gio.File.new_for_path(rpc_file)
monitor = rpc_file.monitor_file(0, None)
rpc_file_gio = Gio.File.new_for_path(rpc_file)
monitor = rpc_file_gio.monitor_file(0, None)
monitor.connect("changed", self.rpc_changed)
config_file = Gio.File.new_for_path(config_file)
@ -125,7 +125,7 @@ class Discover:
if normal_close:
sys.exit(0)
if "--close" in data or "-x" in data:
sys.exit(0)
os.kill(os.getpid(), signal.SIGTERM)
if "--steamos" in data or "-s" in data:
self.steamos = True
if "--hide" in data: