Uploaders
ksnip setup: upload with its script
How to set up ksnip with hematite on Linux, Windows or macOS: download the script, choose it as ksnip's upload script, and copy each capture's link.
This page as Markdownksnip is a free screenshot tool for Linux, Windows and macOS. Its Script uploader runs a script with each capture, which is where hematite's upload script comes in: it uploads the capture and prints the link for ksnip to copy.
Set it up
-
Download the script. In hematite, open Settings → Uploaders, press Download script beside ksnip, and choose your system:
hematite-upload.shfor Linux and macOS,hematite-upload.cmdfor Windows. -
Put it in place, where only you can read it. On Linux and macOS, ksnip runs it directly, so it has to be executable too:
Terminal mkdir -p ~/.local/bin mv ~/Downloads/hematite-upload.sh ~/.local/bin/ chmod 700 ~/.local/bin/hematite-upload.shOn Windows, move
hematite-upload.cmdto a folder of your own, such asC:\Users\nova\AppData\Local\hematite. -
Choose it in ksnip. Open Settings → Uploader and set Uploader Type to Script. Then, under Script Uploader, press Browse beside Script and choose the file.
-
Copy what it prints. Still under Script Uploader, tick Copy script output to clipboard and set Filter to
https://\S+, so only the link is copied. Leave Stop when upload script writes to StdErr on: that's how ksnip knows an upload failed. -
Upload a capture. After a capture, press Upload, or tick Upload image in an action of yours to upload every capture it takes.
When it fails
ksnip says Upload Failed: Script wrote to StdErr. and keeps the reason to itself. To read it, run the script by hand on a capture:
~/.local/bin/hematite-upload.sh ~/Pictures/capture.pngThe upload script's guide lists what it says and what to do. On Windows, run hematite-upload.cmd capture.png in a terminal the same way.
Your upload tokens
The script's token lasts 90 days and counts toward your ten. It's listed as ksnip on Settings → Uploaders and in Settings → Security. Remove it in either place and the script stops uploading; your other uploaders carry on.