Download, compile and install Tp-Note:
Building on Linux
cargo install tpnote
sudo cp ~/.cargo/bin/tpnote /usr/local/bin
# Copy icon
sudo cp assets/tpnote.svg /usr/local/share/icons
Unlike previous Linux versions (<= 1.19.13), Tp-Note displays errors
and debug messages as notifications. This requires a Linux/BSD based
desktop environment that follows the XDG specification, e.g. KDE,
Gnome, XFCE, LXDC, Mate (and probably also most others).
If you prefer to see error messages on the console only, you can opt
out notifications and message boxes by omitting the message-box
feature. In
this case all error messages are dumped on the console from where you started
Tp-Note into stderr
:
cargo install --no-default-features \
--features lang-detection,read-clipboard,renderer,viewer \
tpnote
sudo cp ~/.cargo/bin/tpnote /usr/local/bin
Recommended Linux console and server version
The full-featured version of Tp-Note depends on GUI libraries like Xlib
which might not be available on a headless system. Either download the Musl
version x86_64-unknown-linux-musl/release/tpnote or compile Tp-Note
yourself without default features:
cargo install --no-default-features \
--features lang-detection,renderer tpnote
sudo cp ~/.cargo/bin/tpnote /usr/local/bin
If Tp-Note's binary size if of concern, omit the lang-detection
feature
in the cargo
invocation above. The lang-detection
feature causes 95%
of the final binary size because of its extensive language models.
Building on Windows and macOS
Build the full-featured version with:
cargo install tpnote
When building for Windows or macOS, it does not make sense to exclude the
message-box
feature, because - under Windows and macOS - it does not rely
on the notification library. Instead, it uses direct OS-API calls for
popping up alert boxes. As these calls have no footprint in binary size or
speed, always keep the message-box
feature compiled in.
See also the user manual for a more detailed installation description.