generated from itdominator/Python-With-Gtk-Template
Small IPC fixes
This commit is contained in:
parent
877f70adac
commit
f2a0287950
13
src/app.py
13
src/app.py
@ -22,9 +22,6 @@ class Application(IPCServer):
|
|||||||
def __init__(self, args, unknownargs):
|
def __init__(self, args, unknownargs):
|
||||||
super(Application, self).__init__()
|
super(Application, self).__init__()
|
||||||
if not settings_manager.is_trace_debug():
|
if not settings_manager.is_trace_debug():
|
||||||
try:
|
|
||||||
self.create_ipc_listener()
|
|
||||||
except Exception:
|
|
||||||
self.socket_realization_check()
|
self.socket_realization_check()
|
||||||
|
|
||||||
if not self.is_ipc_alive:
|
if not self.is_ipc_alive:
|
||||||
@ -36,13 +33,19 @@ class Application(IPCServer):
|
|||||||
raise AppLaunchException(f"{app_name} IPC Server Exists: Will send path(s) to it and close...")
|
raise AppLaunchException(f"{app_name} IPC Server Exists: Will send path(s) to it and close...")
|
||||||
|
|
||||||
self.setup_debug_hook()
|
self.setup_debug_hook()
|
||||||
|
|
||||||
Window(args, unknownargs)
|
Window(args, unknownargs)
|
||||||
|
|
||||||
|
|
||||||
def socket_realization_check(self):
|
def socket_realization_check(self):
|
||||||
self.send_test_ipc_message()
|
try:
|
||||||
self.create_ipc_listener()
|
self.create_ipc_listener()
|
||||||
|
except Exception:
|
||||||
|
self.send_test_ipc_message()
|
||||||
|
|
||||||
|
try:
|
||||||
|
self.create_ipc_listener()
|
||||||
|
except Exception as e:
|
||||||
|
...
|
||||||
|
|
||||||
def setup_debug_hook(self):
|
def setup_debug_hook(self):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user