A GTK4 SSH-askpass in Zig
2 hours ago
- - A GTK4 ssh-askpass tool implemented in Zig 0.16 to avoid X11 dependencies, unlike existing Gentoo options that pull in X11 or KDE.
- - The tool uses hand-written GTK/GLib bindings instead of `@cImport` to keep X11 headers out of the build, allowing it to work on systems with the global `-X` USE flag.
- - It supports cross-compiling for multiple Linux architectures (e.g., x86_64, aarch64, riscv64) via a stub `libgtk-4.so.1` for linking.
- - Note: The tool does not perform keyboard grabbing due to GTK4 and Wayland limitations, making the GNOME_SSH_ASKPASS_GRAB variables ineffective.
- - Usage involves setting `SSH_ASKPASS` and `SSH_ASKPASS_REQUIRE=prefer` in shell or systemd config files, enabling passphrase dialogs for SSH without a terminal.