plattfot / pinentry-rofi

Rofi frontend to pinentry
43 stars 5 forks source link

Handle default ok, cancel and prompt #7

Closed plattfot closed 4 years ago

plattfot commented 4 years ago

From the protocol

`Set the default strings'
      To avoid having transaltions in Pinentry proper, the caller may set
      certain translated strings which are used by Pinentry as default
      strings.

             C: OPTION default-ok=_Korrekt
             S: OK
             C: OPTION default-cancel=Abbruch
             S: OK
             C: OPTION default-prompt=PIN eingeben:
             S: OK
      The strings are subject to accelerator marking, see SETPROMPT for
      details.

Currently pinentry-rofi ignores those options and only have a hard coded default for the prompt. In the #4 hard coded defaults were added for ok and cancel. Fix that it can set those from the OPTION.