Shared clipboard process
Go to file
2024-10-14 21:36:28 -07:00
.github/workflows update workflow to address gitea notifications 2024-04-30 22:52:44 -07:00
config add external encryption and use of file for curl binary data 2022-01-07 10:32:47 -08:00
src PARTIAL update zig 0.10.0 -> 0.13.0 (Linux only) 2024-10-14 20:58:47 -07:00
.gitignore cleanup nix-flake and zig-cache 2024-10-14 21:36:28 -07:00
build.zig try link system through nix 2024-10-14 21:20:43 -07:00
LICENSE initial commit: https://stackoverflow.com/questions/27378318/c-get-string-from-clipboard-on-linux 2021-10-29 14:09:51 -07:00
README.md document windows uploader problem 2022-01-07 10:33:52 -08:00

Building

First run should use zig build -Dfetch. This will pull dependencies

Building for Linux

Linux requires libx11 and libxfixes. Specific curl commands are in build.zig

Building for Windows

zig build -Dtarget=x86_64-windows -Dcurl -Dseperate-encryption -Drelease-safe && cp zig-out/bin/*.???

Building for Linux:

zig build

Three executables come out of this:

  • encrypt: Only used in Windows when -Dseperate-encryption is specified. This works around crowdstrike restrictions, but only if the executable is not named "encrypt", so I've rot13'd the name.
  • clipboard-download: Downloads from the clipboard
  • clipboard-upload: Uploads to the clipboard

There is nothing to prevent a download from setting the clipboard and triggering an upload. We'll live with that, at least for now.

Issues to fix

Iguana needs TLS 1.3 support, or support for a ECDSA algorithm Windows uploader creates a traditional dos window