From 463ab29b596c316c153acfbfc9a584fe6668073f Mon Sep 17 00:00:00 2001 From: "okbob@github.com" Date: Thu, 11 Apr 2024 21:05:04 +0200 Subject: [PATCH] try to use clip same way like pbcopy --- src/pspg.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pspg.c b/src/pspg.c index 7baf1f8..4427ed7 100644 --- a/src/pspg.c +++ b/src/pspg.c @@ -2088,7 +2088,6 @@ export_to_file(PspgCommand command, } else { - check_clipboard_app(opts, force_refresh); if (!clipboard_application_id) { @@ -2108,6 +2107,16 @@ export_to_file(PspgCommand command, use_pbcopy = true; fp = popen("pbcopy", "w"); } + else if (clipboard_application_id == 4) + { + /* + * mechanism used and tested for wl-copy and xclip doesn't + * work with pbcopy. So we can just to use popen instead + * rwe_popen. + */ + use_pbcopy = true; + fp = popen("clip.exe", "w"); + } else { char cmdline_clipboard_app[1024];