From e90fc277d346a7c3305d944614a117ac558e59b9 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Wed, 28 Jan 2026 19:52:58 -0800 Subject: [PATCH] Changes to Linux for pasting text into buffers. --- ha-org-clipboard.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ha-org-clipboard.org b/ha-org-clipboard.org index c52eebe..1f3c348 100644 --- a/ha-org-clipboard.org +++ b/ha-org-clipboard.org @@ -166,10 +166,10 @@ And define the same interface for Linux. Keep in mind, we need the exit code fro (defun ha-get-linux-clipboard () "Return the clipbaard for a Unix-based system. See `ha-get-clipboard'." (cl-destructuring-bind (exit-code contents) - (shell-command-with-exit-code "xclip" "-o" "-t" "text/html") + (shell-command-with-exit-code "wl-paste" "--type" "text/html") (if (= 0 exit-code) (list :html contents) - (list :text (shell-command-to-string "xclip -o"))))) + (list :text (shell-command-to-string "wl-paste"))))) (defun shell-command-with-exit-code (program &rest args) "Run PROGRAM with ARGS and return the exit code and output in a list."