Skip to content

Commit

Permalink
try to use clip same way like pbcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
okbob committed Apr 11, 2024
1 parent d05d78e commit 463ab29
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/pspg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2088,7 +2088,6 @@ export_to_file(PspgCommand command,
}
else
{

check_clipboard_app(opts, force_refresh);
if (!clipboard_application_id)
{
Expand All @@ -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];
Expand Down

0 comments on commit 463ab29

Please sign in to comment.