Changed method call and added missing method

This commit is contained in:
itdominator 2022-01-30 17:39:19 -06:00
parent 42f2be0602
commit 8ea8e67f47
2 changed files with 6 additions and 2 deletions

View File

@ -43,12 +43,16 @@ class Controller(DummyMixin, Controller_Data):
try:
type, target, data = event
method = getattr(self.__class__, target)
GLib.idle_add(method, (self, data,))
GLib.idle_add(method, *(self, data,))
except Exception as e:
print(repr(e))
def handle_file_from_ipc(self, path):
print(f"Path From IPC: {path}")
def get_clipboard_data(self):
proc = subprocess.Popen(['xclip','-selection', 'clipboard', '-o'], stdout=subprocess.PIPE)
retcode = proc.wait()

View File

@ -34,7 +34,7 @@ class IPCServerMixin:
if "FILE|" in msg:
file = msg.split("FILE|")[1].strip()
if file:
event_system.push_gui_event([None, "create_tab_from_ipc", file])
event_system.push_gui_event([None, "handle_file_from_ipc", file])
conn.close()
break