From 47c4637b2c48548e5bc86050f7de1fb95df631d9 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Sat, 21 Jun 2025 12:42:39 +0000 Subject: [PATCH] Use tkinter's clipboard handling instead of xclip on linux --- SpanshRouter/SpanshRouter.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/SpanshRouter/SpanshRouter.py b/SpanshRouter/SpanshRouter.py index fa766c2..73675cf 100644 --- a/SpanshRouter/SpanshRouter.py +++ b/SpanshRouter/SpanshRouter.py @@ -341,13 +341,9 @@ class SpanshRouter(): logger.warning(''.join('!! ' + line for line in lines)) def copy_waypoint(self): - if sys.platform == "linux" or sys.platform == "linux2": - command = subprocess.Popen(["echo", "-n", self.next_stop], stdout=subprocess.PIPE) - subprocess.Popen(["xclip", "-selection", "c"], stdin=command.stdout) - else: - self.parent.clipboard_clear() - self.parent.clipboard_append(self.next_stop) - self.parent.update() + self.parent.clipboard_clear() + self.parent.clipboard_append(self.next_stop) + self.parent.update() def goto_next_waypoint(self): if self.offset < self.route.__len__()-1: