KWALLETCLI_GETPIN(1)
π KWALLETCLI_GETPIN π
okay bestie, so this one's from the General Commands Manual section, and it's literally called kwalletcli_getpin β say that three times fast, I dare you. π
β¨ NAME β¨
kwalletcli_getpin β a command line interface to pinentry, no cap π«Ά
πΈ SYNOPSIS πΈ
kwalletcli_getpin [-q] [-b | -m | -p prompt] [-E | -e errortext]
[-N NoText] [-t desctext] [-Y YesText]
π¦ DESCRIPTION π¦
so kwalletcli_getpin is a lil shell wrapper that talks to pinentry using the Assuan protocol, which is giving very much backstage-pass energy ngl. it asks the user for a passphrase and then prints it to standard output β without any trailing newline, okay, that part matters, don't come for me. π
and it's not just passphrases, bestie. there are options for asking a boolean question or just displaying a message. versatile icon behaviour, honestly. π
now here's the tea β β if PINENTRY is not empty but points to a non-existing or failing program, then pinentry is not called. instead:
xmessage(1)gets used for boolean queries and messages, but only ifDISPLAYis set- otherwise
kwalletcli_getpinfalls back to simple terminal I/O onGPG_TTY, usingstty(1)to turn off echo of terminal input for passphrase queries π
The options are as follows:
π OPTIONS π
-bβ ask for a confirmation (boolean) instead of a passphrase. yes/no vibes only. π-Eβ unset a previously set error text. bye bye error text π-E errtxtβ set the error text to errtxt, and it pops a dialogue box with a red X icon indicating that this is a retry question. dramatic? yes. necessary? also yes. π-mβ display a message (one-button query) instead of asking. just a lil announcement, main character energy π’-N NoTextβ use NoText instead ofCancelfor the text of the abort button, if any.-p promptβ set the small descriptive text shown in front of the input field (aka βthe Promptβ) to prompt. βοΈ-qβ be more quiet. shhh π€«-t desctxtβ set the descriptive text (the input challenge) to desctxt.-Y YesTextβ use YesText instead ofOKfor the text of the confirm button.
All input and output is assumed to be in UTF-8. periodt. π
π RETURN VALUES π
kwalletcli_getpin exits 0 on success, 1 if the passphrase input was cancelled by the user, or >1 if an error occurred.
Confirmation (boolean) error codes are 0 for Yes, 1 for No, or >1 if an error occurred. Messages return >0 if an error occurred, 0 otherwise.
A summary of the error codes follows:
0β Read password successfully. Boolean question returned Yes/OK. π1β Boolean question returned No/Cancel. π2β Wrong command line syntax. bestie what did you type π3β The process reading user input unexpectedly terminated or errored out. π4β Unexpected result reading from pinentry. π€¨5β Unable to determine controlling tty, caller must setGPG_TTY. π΅6β CaughtSIGHUP,SIGINT,SIGQUIT,SIGTRAP,SIGPIPE, orSIGTERM. π
π§ ENVIRONMENT π§
DISPLAYβ If not set, pass current terminal information to pinentry.GPG_TERMβ Terminal type of the current tty. Defaults to the value of the environment variableTERM, or βvt100β if unset.GPG_TTYβ The current terminal, determined bytty(1)if unset.LC_CTYPEβ Passed to pinentry. Default: βen_US.UTF-8βLC_MESSAGESβ Passed to pinentry. Unset by default.PINENTRYβ The pinentry program to use. Default: βpinentryβ
π SEE ALSO π
gpg-agent(1), kwalletcli(1), pinentry(1), stty(1), tset(1), tty(1)
π«Ά AUTHORS π«Ά
kwalletcli_getpin was written by mirabilos <m@mirbsd.org> mostly for tarent solutions GmbH. iconic collaboration fr fr π
β οΈ CAVEATS β οΈ
Some newer pinentry features, such as three-button operation or setting the window title, are not supported yet. it's giving "coming soon to a terminal near you", but for now, no. π βοΈ
π BUGS π
- Some pinentry programs may not support messages correctly and display them as boolean queries instead. messy. π
- Some implementations display labels with the wrong charset. π
Neither of these two problems is an issue in kwalletcli_getpin but a bug of the backend implementation. so likeβ¦ not our fault, bestie, don't @ us. π
okay and that's the whole page!! π this version shipped in Debian, dated November 19, 2020 β so when you're reading this in the group chat at 2am, just know it's the real, official, vintage-certified manual page. slay, stay safe, and always set your GPG_TTY. π¦β¨π
π¦ where this page comes from
- debian bookworm: kwalletcli 3.03-1
- debian trixie: kwalletcli 3.03-1+b1
- ubuntu jammy: kwalletcli 3.03-1
- ubuntu noble: kwalletcli 3.03-1build2
- ubuntu questing: kwalletcli 3.03-1build2
- ubuntu resolute: kwalletcli 3.03-1build3
- ubuntu stonking: kwalletcli 3.03-1build3
- Copyright Β© 2009, 2011, 2016, 2018, 2020 mirabilos <m@mirbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms