These implementations really need to also include fingerprint sensor support
Fingerprint is an authentication mechanism, not an authorization one.
A GTK4 SSH-askpass in Zig
11–20 of 28 posts
Re: A GTK4 SSH-askpass in Zig
#12Re: A GTK4 SSH-askpass in Zig
#13Nice, I just use lxqt-openssh-askpass, but I am on X11. A lighter alternative (for single-text input) would be FLTK. Version 1.4 is really nice, with Wayland support, and they even draw custom window decorations on GNOME. Both Cairo and FLTK should be able to compile with -X; not sure, though, about the status of the Zig bindings.
Re: A GTK4 SSH-askpass in Zig
#14Earlier quoted context omitted.
PAM really needs to be ravamped and support for (among other things) running multiple stacks in par@llel added. This way you could ask for a password OR a fingerprint
Keypassxc does it perfectly.
Re: A GTK4 SSH-askpass in Zig
#15 exe_mod.linkSystemLibrary("gtk-4", .{ .use_pkg_config = .no });
exe_mod.linkSystemLibrary("gobject-2.0", .{});
In my case, at least, this doesn't change the full library tree because gtk-4 still links against all of the libraries that are removed from this binary's list, but it does mean that programs which calculate dependencies, like dpkg-shlibdeps, won't report spurious "required" dependencies when analyzing the binary.When building on Ubuntu 26.04, the binary no longer directly links against lib{pango, cairo, pangocairo, cairo-gobject, harfbuzz, gdk_pixbuf, graphene, gio, vulkan}.
Can't create an account on the site so I figured I'd post this here. If you're going for absolute minimalism this seems like another step in the right direction for anyone building on a more 'gratuitous' GTK build (such as Ubuntu's)
Re: A GTK4 SSH-askpass in Zig
#16Nice, I just use lxqt-openssh-askpass, but I am on X11. A lighter alternative (for single-text input) would be FLTK. Version 1.4 is really nice, with Wayland support, and they even draw custom window decorations on GNOME. Both Cairo and FLTK should be able to compile with -X; not sure, though, about the status of the Zig bindings.
fltk is c++ based which makes language bindings significantly harder in general. gtk is c based which worked out really well in that aspect.
Re: A GTK4 SSH-askpass in Zig
#17Whenever someone writes "with hand-written bindings" I read "will stop working 8 minutes after the next release"
And in languages like zig or odin which are quite similar to C in many ways, writing bindings to C code really isn’t bad. It is so easy that I decided to write my own bindings in Odin to sqlite - bindings exist but it really was so very easy that I didn’t want to bring in a generator or another dependency.
Re: A GTK4 SSH-askpass in Zig
#18Earlier quoted context omitted.
fltk is c++ based which makes language bindings significantly harder in general. gtk is c based which worked out really well in that aspect.
Sure, you need to wrap it in C, but there is also `cfltk` that is maintained and used in Rust bindings. Btw., the difference in memory usage is huge with GTK4. FLTK hello world is ~10M, GTK3 is ~15M, GTK4 is 40M! With Cairo rendering, it's about 30M, but still a lot.
Re: A GTK4 SSH-askpass in Zig
#19Earlier quoted context omitted.
fltk is c++ based which makes language bindings significantly harder in general. gtk is c based which worked out really well in that aspect.
Sure, you need to wrap it in C, but there is also `cfltk` that is maintained and used in Rust bindings. Btw., the difference in memory usage is huge with GTK4. FLTK hello world is ~10M, GTK3 is ~15M, GTK4 is 40M! With Cairo rendering, it's about 30M, but still a lot.
Re: A GTK4 SSH-askpass in Zig
#20These implementations really need to also include fingerprint sensor support
PAM really needs to be ravamped and support for (among other things) running multiple stacks in par@llel added. This way you could ask for a password OR a fingerprint