anybody know of a #polkit authentication agent that lets you use a numpad like the #phosh passcode entry screen?

#mobian #linux #debian

@spv In fact phosh would like to do it but there's currently no way for apps to indicate that a keypad would be the preferred choice: gitlab.gnome.org/GNOME/gcr/-/m

@agx man i love FOSS -- seeing the development discussions and contributing rather than "welp i guess we'll see what they ship in a year" lmfao

@agx can't squeekboard see the app getting the input? could probably add a heuristic to check for a polkit input and switch to a keypad then (and add a gsetting or some shit to differentiate alphanumeric from numeric)

@spv Not in the case of the prompter, that's a DBus API so the app needs to sent the hint over the channel (hence the MR). (The text-input client in this case is the shell not the app)

The OSK could deal with it nicely, we'd just need send that one hint over DBus and everything would fall into place.

@agx then i suppose an even worse heuristic of "is polkit currently in use?" might work (sort of?)

(pgrep polkit-agent-he && echo numpad)

@spv polkit even has its on prompt (and DBus API) separate from system prompts (that e.g. gpg or SIM unlock uses). It's not driven by gcr so one could use a keypad for that case.

@spv Scrolling back up I see you asked for polkit in the first place (I was reading system prompt), sorry for the confusion.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml