New trace debug flag for when using trace module
This commit is contained in:
parent
bee66ee001
commit
59d67874ad
|
@ -64,3 +64,4 @@ class Builtins(IPCServerMixin):
|
||||||
builtins.event_system = Builtins()
|
builtins.event_system = Builtins()
|
||||||
builtins.event_sleep_time = 0.2
|
builtins.event_sleep_time = 0.2
|
||||||
builtins.debug = False
|
builtins.debug = False
|
||||||
|
builtins.trace_debug = False
|
||||||
|
|
|
@ -13,8 +13,11 @@ from __builtins__ import Builtins
|
||||||
|
|
||||||
class Main(Builtins):
|
class Main(Builtins):
|
||||||
def __init__(self, args, unknownargs):
|
def __init__(self, args, unknownargs):
|
||||||
|
if not debug:
|
||||||
event_system.create_ipc_server()
|
event_system.create_ipc_server()
|
||||||
|
|
||||||
time.sleep(0.2)
|
time.sleep(0.2)
|
||||||
|
if not trace_debug:
|
||||||
if not event_system.is_ipc_alive:
|
if not event_system.is_ipc_alive:
|
||||||
if unknownargs:
|
if unknownargs:
|
||||||
for arg in unknownargs:
|
for arg in unknownargs:
|
||||||
|
|
|
@ -24,6 +24,8 @@ class WindowController:
|
||||||
self.active_window_id = ""
|
self.active_window_id = ""
|
||||||
self.active_tab_id = ""
|
self.active_tab_id = ""
|
||||||
self.windows = []
|
self.windows = []
|
||||||
|
|
||||||
|
if not trace_debug:
|
||||||
self.fm_event_observer()
|
self.fm_event_observer()
|
||||||
|
|
||||||
@threaded
|
@threaded
|
||||||
|
|
|
@ -31,6 +31,8 @@ class Controller(WidgetFileActionMixin, PaneMixin, WindowMixin, ShowHideMixin, \
|
||||||
|
|
||||||
self.window.connect("delete-event", self.tear_down)
|
self.window.connect("delete-event", self.tear_down)
|
||||||
GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT, self.tear_down)
|
GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT, self.tear_down)
|
||||||
|
|
||||||
|
if not trace_debug:
|
||||||
self.gui_event_observer()
|
self.gui_event_observer()
|
||||||
|
|
||||||
if unknownargs:
|
if unknownargs:
|
||||||
|
|
Loading…
Reference in New Issue