{"action":"created","issue":{"url":"https://api.github.com/repos/diablodale/pinentry-wsl-ps1/issues/3","repository_url":"https://api.github.com/repos/diablodale/pinentry-wsl-ps1","labels_url":"https://api.github.com/repos/diablodale/pinentry-wsl-ps1/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/diablodale/pinentry-wsl-ps1/issues/3/comments","events_url":"https://api.github.com/repos/diablodale/pinentry-wsl-ps1/issues/3/events","html_url":"https://github.com/diablodale/pinentry-wsl-ps1/issues/3","id":377423503,"node_id":"MDU6SXNzdWUzNzc0MjM1MDM=","number":3,"title":"Does not work","user":{"login":"sarunint","id":3850197,"node_id":"MDQ6VXNlcjM4NTAxOTc=","avatar_url":"https://avatars1.githubusercontent.com/u/3850197?v=4","gravatar_id":"","url":"https://api.github.com/users/sarunint","html_url":"https://github.com/sarunint","followers_url":"https://api.github.com/users/sarunint/followers","following_url":"https://api.github.com/users/sarunint/following{/other_user}","gists_url":"https://api.github.com/users/sarunint/gists{/gist_id}","starred_url":"https://api.github.com/users/sarunint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarunint/subscriptions","organizations_url":"https://api.github.com/users/sarunint/orgs","repos_url":"https://api.github.com/users/sarunint/repos","events_url":"https://api.github.com/users/sarunint/events{/privacy}","received_events_url":"https://api.github.com/users/sarunint/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-05T14:27:36Z","updated_at":"2018-11-05T15:36:00Z","closed_at":null,"author_association":"NONE","body":"Same as #2, but this time with logs!\r\n\r\nHere we go:\r\n\r\n```\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 -> OK Pleased to meet you, process 3042\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 <- RESET\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 -> OK\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 <- OPTION ttyname=/dev/tty1\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 -> OK\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 <- OPTION ttytype=xterm-256color\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 -> OK\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 <- OPTION lc-ctype=en_US.UTF-8\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 -> OK\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 <- OPTION lc-messages=en_US.UTF-8\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 -> OK\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 <- GETINFO version\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 -> D 2.2.4\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 -> OK\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 <- OPTION allow-pinentry-notify\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 -> OK\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 <- OPTION agent-awareness=2.1.0\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 -> OK\r\n2018-11-05 21:23:45 gpg-agent[3036] DBG: chan_10 <- GETINFO s2k_count\r\n2018-11-05 21:23:47 gpg-agent[3036] S2K calibration: 64423936 -> 359ms\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_10 -> D 64423936\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_10 -> OK\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_10 <- GETINFO cmd_has_option GET_PASSPHRASE repeat\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_10 -> OK\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_10 <- GET_PASSPHRASE --data --repeat=1 -- S37AFE6F44FE7851F X X Enter+passphrase%0A\r\n2018-11-05 21:23:47 gpg-agent[3036] starting a new PIN Entry\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_11 <- OK Your orders please\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: connection to PIN entry established\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_11 -> OPTION no-grab\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_11 -> OPTION ttyname=/dev/tty1\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_11 -> OPTION ttytype=xterm-256color\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_11 -> OPTION lc-ctype=en_US.UTF-8\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:47 gpg-agent[3036] DBG: chan_11 -> OPTION lc-messages=en_US.UTF-8\r\n2018-11-05 21:23:48 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:48 gpg-agent[3036] DBG: chan_11 -> OPTION allow-external-password-cache\r\n2018-11-05 21:23:48 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:48 gpg-agent[3036] DBG: chan_11 -> OPTION default-ok=_OK\r\n2018-11-05 21:23:48 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:48 gpg-agent[3036] DBG: chan_11 -> OPTION default-cancel=_Cancel\r\n2018-11-05 21:23:48 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:48 gpg-agent[3036] DBG: chan_11 -> OPTION default-yes=_Yes\r\n2018-11-05 21:23:48 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:48 gpg-agent[3036] DBG: chan_11 -> OPTION default-no=_No\r\n2018-11-05 21:23:48 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:48 gpg-agent[3036] DBG: chan_11 -> OPTION default-prompt=PIN:\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 -> OPTION default-pwmngr=_Save in password manager\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 -> OPTION default-cf-visi=Do you really want to make your passphrase visible on the screen?\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 -> OPTION default-tt-visi=Make passphrase visible\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 -> OPTION default-tt-hide=Hide passphrase\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 -> OPTION touch-file=/home/sarunint/.gnupg/S.gpg-agent\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 -> OPTION owner=3042 DESKTOP-OD0TNGB\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:49 gpg-agent[3036] DBG: chan_11 -> GETINFO flavor\r\n2018-11-05 21:23:50 gpg-agent[3036] DBG: chan_11 <- ERR 83886355 unknown command\r\n2018-11-05 21:23:50 gpg-agent[3036] DBG: chan_11 -> GETINFO version\r\n2018-11-05 21:23:50 gpg-agent[3036] DBG: chan_11 <- D 0.2.0\r\n2018-11-05 21:23:50 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:50 gpg-agent[3036] DBG: chan_11 -> GETINFO ttyinfo\r\n2018-11-05 21:23:50 gpg-agent[3036] DBG: chan_11 <- ERR 83886355 unknown command\r\n2018-11-05 21:23:50 gpg-agent[3036] DBG: chan_11 -> GETINFO pid\r\n2018-11-05 21:23:50 gpg-agent[3036] DBG: chan_11 <- D 3044\r\n2018-11-05 21:23:50 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:50 gpg-agent[3036] DBG: chan_10 -> INQUIRE PINENTRY_LAUNCHED 3044 unknown 0.2.0 ? ? ?\r\n2018-11-05 21:23:50 gpg-agent[3036] DBG: chan_11 -> SETKEYINFO u/S37AFE6F44FE7851F\r\n2018-11-05 21:23:50 gpg-agent[3036] DBG: chan_11 <- OK\r\n2018-11-05 21:23:50 gpg-agent[3036] DBG: chan_11 -> SETDESC Enter passphrase%0A\r\n```\r\n\r\nLooks like gpg check for `GET_PASSPHRASE` command with `GETINFO cmd_has_option GET_PASSPHRASE repeat` and since your script returns OK it fires that command.\r\n\r\nEDIT: my environment\r\nWindows 10 version 1809\r\nUbuntu 18.04\r\n```\r\nsarunint@DESKTOP-OD0TNGB:~$ gpg --version\r\ngpg (GnuPG) 2.2.4\r\nlibgcrypt 1.8.1\r\nCopyright (C) 2017 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.\r\n\r\nHome: /home/sarunint/.gnupg\r\nSupported algorithms:\r\nPubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA\r\nCipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,\r\n        CAMELLIA128, CAMELLIA192, CAMELLIA256\r\nHash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224\r\nCompression: Uncompressed, ZIP, ZLIB, BZIP2\r\n```\r\n\r\n(Yes, Ubuntu 18.04's gpg is version 2 by default, so no more gpg2.)"},"comment":{"url":"https://api.github.com/repos/diablodale/pinentry-wsl-ps1/issues/comments/435919260","html_url":"https://github.com/diablodale/pinentry-wsl-ps1/issues/3#issuecomment-435919260","issue_url":"https://api.github.com/repos/diablodale/pinentry-wsl-ps1/issues/3","id":435919260,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTkxOTI2MA==","user":{"login":"diablodale","id":679350,"node_id":"MDQ6VXNlcjY3OTM1MA==","avatar_url":"https://avatars0.githubusercontent.com/u/679350?v=4","gravatar_id":"","url":"https://api.github.com/users/diablodale","html_url":"https://github.com/diablodale","followers_url":"https://api.github.com/users/diablodale/followers","following_url":"https://api.github.com/users/diablodale/following{/other_user}","gists_url":"https://api.github.com/users/diablodale/gists{/gist_id}","starred_url":"https://api.github.com/users/diablodale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diablodale/subscriptions","organizations_url":"https://api.github.com/users/diablodale/orgs","repos_url":"https://api.github.com/users/diablodale/repos","events_url":"https://api.github.com/users/diablodale/events{/privacy}","received_events_url":"https://api.github.com/users/diablodale/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T15:36:00Z","updated_at":"2018-11-05T15:36:00Z","author_association":"OWNER","body":"Hello. thanks for the initial issue information. I do need to get the step-by-step information of how to reproduce your issue. I see that you have Windows 10 and the newer 18.04 Ubuntu WSL (I personally haven't tested 18.04).\r\nWhat are the detailed steps that I need to follow to reproduce your issue?\r\nWhat is your issue? Meaning what is the errant result that you get?\r\nWhat is your expected result rather than the errant result?"}}
{"actor":{"display_login":"diablodale"}}