Crates.io | rlr-gtk |
lib.rs | rlr-gtk |
version | 0.3.1 |
source | src |
created_at | 2022-03-27 09:25:53.360589 |
updated_at | 2024-11-25 15:54:03.519118 |
description | pixel screen ruler |
homepage | https://github.com/epilys/rlr |
repository | https://github.com/epilys/rlr |
max_upload_size | |
id | 557217 |
size | 2,318,702 |
rlr
: a pixel screen rulerRust + GTK interactive pixel screen ruler with protractor mode.
cargo install rlr-gtk
| |
To use application settings, the app's settings schema but be installed in your system.
It is possible to attempt to do this automatically via the Settings menu, which will install the schema to ${HOME}/.local/share/glib-2.0/schemas/
and subsequently attempt to compile it; but the directory must exist beforehand, it won't be created.
rlr
includes a command-line argument --install-gsettings-schema
that creates the settings schema at the given directory.
If directory is -
, it will be printed to standard output instead.
Note: The directory values should probably be one of: ${HOME}/.local/share/glib-2.0/schemas/
, /usr/share/glib-2.0/schemas/
or similar.
For the settings schema to be discoverable, it must be compiled with glib-compile-schemas
.
An example usage:
rlr --install-gsettings-schema "${HOME}/.local/share/glib-2.0/schemas/"
and then:
glib-compile-schemas "${HOME}/.local/share/glib-2.0/schemas/"
If you are on macOS, use ⌘ (Command) key instead of Ctrl.
cargo build --release
To help packagers in OSes that support the XDG Desktop standards, a .desktop
app launcher filer, an application icon and a symbolic application icon are
included.
rlr.desktop
should be installed in any of the following:
/usr/share/applications/
, /usr/local/share/applications/
or
$HOME/.local/share/applications/
.rlr.svg
should be installed in
/usr/share/icons/hicolor/scalable/apps/rlr.svg
.rlr.symbolic.svg
should be installed in
/usr/share/icons/hicolor/symbolic/apps/rlr.svg
.The files have been contributed by https://github.com/somepaulo.