aboutsummaryrefslogtreecommitdiffstats
path: root/pinentry-rofi.scm
Commit message (Collapse)AuthorAgeFilesLines
* Use ~! to flush the outputFredrik Salomonsson2020-06-261-16/+8
| | | | | Instead of having to sprinkle force-output all over the place. Which also breaks some of the functions that accept an optional port.
* Add keyword argument to the get functions to redirect the outputFredrik Salomonsson2020-06-141-13/+13
| | | | | To make it easier to test them without having to externally redirect the output. As that messes up the testing suite as well as guile-hall.
* Using Hall to handle the projectFredrik Salomonsson2020-06-121-47/+1
|
* Fix crash when rofi is aborted (#11)1.0.2Fredrik Salomonsson2020-05-111-1/+1
|
* Bumping up version to 1.0.11.0.1Fredrik Salomonsson2020-05-111-1/+1
|
* Add test for empty password and string-empty?Fredrik Salomonsson2020-05-111-0/+1
|
* Use the html newline when combining the error and description (#10)Fredrik Salomonsson2020-05-111-1/+1
| | | | Otherwise it will not linebreak properly
* Add missing '-input /dev/null' to rofi when asking for password (#9)Fredrik Salomonsson2020-05-111-12/+12
| | | | | | | When refactoring this got removed. Which hangs the input when running via gpg. It doesn't show up when running `pinentry-rofi` directly. The hang is pretty nasty as well, as input to other programs stop working. Only way is to open up a new terminal and find the PID and kill it.
* Bumping up version to 1.0.01.0.0Fredrik Salomonsson2020-05-111-1/+1
|
* Exposing rofi-popupFredrik Salomonsson2020-05-111-0/+2
|
* Refactor the rofi part of the codeFredrik Salomonsson2020-05-111-68/+86
| | | | | | | Wrapped the call to rofi into one function. Then let `pinentry-getpin` and `pinentry-confirm` call that. Make it easier to test the code, make it easier to maintain and should be easier to potentially swap out the rofi call to something else in the future.
* Convert hex to char before handling underline for pango-markupFredrik Salomonsson2020-05-081-3/+3
|
* Fix that the underline/underscore handle newlinesFredrik Salomonsson2020-05-081-3/+3
|
* export the public functionsFredrik Salomonsson2020-05-081-1/+42
|
* Remove pinentry prefix for some utility functionsFredrik Salomonsson2020-05-081-6/+6
|
* Made pinentry-rofi a moduleFredrik Salomonsson2020-05-081-8/+9
|
* Fix copyrightFredrik Salomonsson2020-05-081-1/+1
|
* Merge branch 'message_6' (#6)Fredrik Salomonsson2020-05-041-2/+23
|\
| * Added support for MESSAGE and CONFIRM --one-button (#6)Fredrik Salomonsson2020-05-041-2/+23
| | | | | | | | | | More digging in the protocol, it can also use CONFIRM with one button aka MESSAGE, to show message to the user.
* | Merge branch 'better_default_7' (#7)Fredrik Salomonsson2020-05-041-10/+31
|\ \
| * | Added support for default-ok, default-cancel and default-prompt (#7)Fredrik Salomonsson2020-05-041-2/+26
| | | | | | | | | | | | | | | They now set the `ok-button`, `cancel-button` and `prompt` on the pinentry struct. Rest of the options are still ignored.
| * | Better handling of the default ok and cancel labels (#7)Fredrik Salomonsson2020-05-041-8/+5
| |/ | | | | | | | | | | The default ok and cancel are now default values for pinentry's `ok-button` and `cancel-button`. Which simplifies the `CONFIRM` pop up a bit.
* | Refactored the functions that set button labels or messages (#5)Fredrik Salomonsson2020-05-041-17/+39
| | | | | | | | | | | | Reduced the amount of duplicate code, i.e setting pinentry-ok and use of `input-string` and `pango-markup`. By creating three wrapper functions.
* | Added support for underline (#5)Fredrik Salomonsson2020-05-041-1/+27
|/ | | | | | | | | | Reading some more in the pinentry protocol [1], underscore followed by a character means underline that character. To escape that two underscore is used. Added that behavior in the messages. The input to dmenu i.e the buttons, does not support pango markup so just removing the underscore. [1] http://info2html.sourceforge.net/cgi-bin/info2html-demo/info2html?(pinentry)Protocol
* Fixed typo in the error codeFredrik Salomonsson2020-05-041-1/+1
|
* Missing punctuation on docstringFredrik Salomonsson2020-05-041-1/+1
|
* Replace %0A with 
 instead of \\\\n (#4)Fredrik Salomonsson2020-05-041-2/+2
| | | | | | This should fix the newline issue. Thanks to @n0emis for pointing this out.
* Properly handle newlines in input strings (#4)Fredrik Salomonsson2020-05-031-18/+26
|
* Using ">:" for the prompt of confirm popup (#4)Fredrik Salomonsson2020-05-031-1/+1
| | | | | Instead of `pinentry-prompt` as that is only set when it ask for the pin.
* Experimental confirm dialog in rofi (#4)Fredrik Salomonsson2020-05-011-4/+78
| | | | Pop up a rofi dialog when command CONFIRM given.
* Renamed --debug to --log (#4)Fredrik Salomonsson2020-05-011-3/+3
| | | | | Most pinentry tools have an `--debug` option which takes no arguments. So should probably reserve the same for pinentry-rofi.
* Return ERR instead of exiting when encounter an unknown command (#4)Fredrik Salomonsson2020-05-011-2/+3
| | | | | | | This might help with the high cpu load as gpg seems to be respawning `pinentry-rofi` if it exists when encounter an unknown command. Instead it prints ERR 69 <msg>, which is the gpg error code for not implemented.
* Added option --debug <logfile> (#4)Fredrik Salomonsson2020-05-011-3/+14
| | | | Will log unknown commands to <logfile>.PID
* Resetting pinentry-ok when a command succeedsFredrik Salomonsson2020-05-011-9/+18
|
* Fixed bug with not reaching BYEFredrik Salomonsson2020-05-011-2/+2
| | | | | Was not returning the regex-match object correctly for `pinentry-seterror' so it was never calling `pinentry-bye'.
* Added support to ask password again if it's wrong (#3)0.5.0Fredrik Salomonsson2020-04-211-3/+18
| | | | | SETERROR was missing so it was just bailing out when it saw that command.
* Disable the auto compile, which should fix an issue with ubuntu0.4.0Fredrik Salomonsson2019-06-061-1/+1
| | | | | | | This is a tiny script and it is about as fast without compiling it. And the compile step in the makefile was causing some issues with ubuntu distros as they seems to not have guile support enabled for make.
* Wrapped script in a main procedureFredrik Salomonsson2019-06-061-26/+28
| | | | To be able to run it from the REPL
* Forgot to bump up the version in the source file0.3.0Fredrik Salomonsson2018-11-101-1/+1
|
* Renamed rofi-pinentry to pinentry-rofi.scmFredrik Salomonsson2018-11-101-0/+207