Changed method call and added missing method
This commit is contained in:
parent
42f2be0602
commit
8ea8e67f47
|
@ -43,12 +43,16 @@ class Controller(DummyMixin, Controller_Data):
|
||||||
try:
|
try:
|
||||||
type, target, data = event
|
type, target, data = event
|
||||||
method = getattr(self.__class__, target)
|
method = getattr(self.__class__, target)
|
||||||
GLib.idle_add(method, (self, data,))
|
GLib.idle_add(method, *(self, data,))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(repr(e))
|
print(repr(e))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def handle_file_from_ipc(self, path):
|
||||||
|
print(f"Path From IPC: {path}")
|
||||||
|
|
||||||
|
|
||||||
def get_clipboard_data(self):
|
def get_clipboard_data(self):
|
||||||
proc = subprocess.Popen(['xclip','-selection', 'clipboard', '-o'], stdout=subprocess.PIPE)
|
proc = subprocess.Popen(['xclip','-selection', 'clipboard', '-o'], stdout=subprocess.PIPE)
|
||||||
retcode = proc.wait()
|
retcode = proc.wait()
|
||||||
|
|
|
@ -34,7 +34,7 @@ class IPCServerMixin:
|
||||||
if "FILE|" in msg:
|
if "FILE|" in msg:
|
||||||
file = msg.split("FILE|")[1].strip()
|
file = msg.split("FILE|")[1].strip()
|
||||||
if file:
|
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()
|
conn.close()
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue