pyrite icon indicating copy to clipboard operation
pyrite copied to clipboard

Listing the names through EntryCompletion

Open karelbilek opened this issue 9 years ago • 14 comments

I have added the name listing with asymmetric crypto

I had to remove status listing and STDERR listing on the right for key listing, since if I didn't do that, the program hanged indefinitely and it never showed the STDERR again correctly; it has probably something to do with threads/processes. Well, anyway, now it works, even when it's a bit hacked.

It uses GtkEntryCompletion - that means you have to write at least one character in order to see the possibilities (but you can then delete it and see all of them; it's a bit weird); and it is searched only from the start (so no smart matching etc).

It should not break anything

karelbilek avatar Dec 21 '14 17:12 karelbilek

Sort-of-fixes issue #17

karelbilek avatar Dec 21 '14 17:12 karelbilek

I would love to know why is the hacking with STDERRs needed and why it can't just work, maybe you as the original author will know

karelbilek avatar Dec 21 '14 18:12 karelbilek

I'm intrigued and excited to take a look at this! So glad you didn't just keep it to yourself. :)

I'm heading out of town in the next couple hours though, so it's gonna have to wait a bit. :(

ryran avatar Dec 23 '14 19:12 ryran

How does it look like? (I am in no hurry of course but I will be glad if other can use it too :) )

karelbilek avatar Jan 01 '15 14:01 karelbilek

My opinion is that the list-keys is just too quick and finishes before all the STDERR redirection happens, but I am not sure at all

karelbilek avatar Jan 01 '15 14:01 karelbilek

@runn1ng Just a quick FYI to let you know that when I execute ./pyrite.py from your repo, it hangs. ... The GUI never shows up. I'll take a look at the code soon.

ryran avatar Jan 02 '15 18:01 ryran

Oh. Well, I am just now learning python and only now I really learned the subprocesses module so pardon :)

karelbilek avatar Jan 02 '15 20:01 karelbilek

@runn1ng : I'd really like to look at this more, but I have to ask you to take a look at your code again Karel. It literally doesn't work at all on my system. Is it possible your local copy is synced with github?

ryran avatar Jan 03 '15 04:01 ryran

Hm. All right, I will check it out again On Jan 3, 2015 5:23 AM, "Ryan Sawhill Aroha" [email protected] wrote:

@runn1ng https://github.com/runn1ng : I'd really like to look at this more, but I have to ask you to take a look at your code again Karel. It literally doesn't work at all on my system. Is it possible your local copy is synced with github?

— Reply to this email directly or view it on GitHub https://github.com/ryran/pyrite/pull/23#issuecomment-68582773.

karelbilek avatar Jan 03 '15 12:01 karelbilek

I have to confirm, I cloned it again into a new directory and it starts and works. With the "auto fill".

I have no idea what is wrong. I unfortunately have only pc currently available.... Hm, I can try one more PC as I think about it On Jan 3, 2015 1:06 PM, "Karel Bílek" [email protected] wrote:

Hm. All right, I will check it out again On Jan 3, 2015 5:23 AM, "Ryan Sawhill Aroha" [email protected] wrote:

@runn1ng https://github.com/runn1ng : I'd really like to look at this more, but I have to ask you to take a look at your code again Karel. It literally doesn't work at all on my system. Is it possible your local copy is synced with github?

— Reply to this email directly or view it on GitHub https://github.com/ryran/pyrite/pull/23#issuecomment-68582773.

karelbilek avatar Jan 04 '15 04:01 karelbilek

Tried it on a totally different and independent computer (where I separately cloned it from my repo) , still starts fine. (of course after writing correct directory into modules/cfg.py)

Not saying it is not some error, I just can't detect it On Jan 4, 2015 5:02 AM, "Karel Bílek" [email protected] wrote:

I have to confirm, I cloned it again into a new directory and it starts and works. With the "auto fill".

I have no idea what is wrong. I unfortunately have only pc currently available.... Hm, I can try one more PC as I think about it On Jan 3, 2015 1:06 PM, "Karel Bílek" [email protected] wrote:

Hm. All right, I will check it out again On Jan 3, 2015 5:23 AM, "Ryan Sawhill Aroha" [email protected] wrote:

@runn1ng https://github.com/runn1ng : I'd really like to look at this more, but I have to ask you to take a look at your code again Karel. It literally doesn't work at all on my system. Is it possible your local copy is synced with github?

— Reply to this email directly or view it on GitHub https://github.com/ryran/pyrite/pull/23#issuecomment-68582773.

karelbilek avatar Jan 04 '15 04:01 karelbilek

I see I see. Can you tell me what version of gnupg, python, gtk2?

On Sat, Jan 3, 2015, 23:07 Karel Bílek [email protected] wrote:

Tried it on a totally different and independent computer (where I separately cloned it from my repo) , still starts fine. (of course after writing correct directory into modules/cfg.py)

Not saying it is not some error, I just can't detect it On Jan 4, 2015 5:02 AM, "Karel Bílek" [email protected] wrote:

I have to confirm, I cloned it again into a new directory and it starts and works. With the "auto fill".

I have no idea what is wrong. I unfortunately have only pc currently available.... Hm, I can try one more PC as I think about it On Jan 3, 2015 1:06 PM, "Karel Bílek" [email protected] wrote:

Hm. All right, I will check it out again On Jan 3, 2015 5:23 AM, "Ryan Sawhill Aroha" [email protected]

wrote:

@runn1ng https://github.com/runn1ng : I'd really like to look at this more, but I have to ask you to take a look at your code again Karel. It literally doesn't work at all on my system. Is it possible your local copy is synced with github?

— Reply to this email directly or view it on GitHub https://github.com/ryran/pyrite/pull/23#issuecomment-68582773.

— Reply to this email directly or view it on GitHub https://github.com/ryran/pyrite/pull/23#issuecomment-68620275.

ryran avatar Jan 04 '15 04:01 ryran

GnuPG:

$ gpg2 --version
gpg (GnuPG) 2.0.22
libgcrypt 1.5.3
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ?, ?
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

python:

$ python --version
Python 2.7.6

gtk2.... I hope this is the right way to find out

$ pkg-config --modversion gtk+-2.0
2.24.23

On the other computer:

$ gpg2 --version
gpg (GnuPG) 2.0.26
libgcrypt 1.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

$ python --version
Python 2.7.9

$ pkg-config --modversion gtk+-2.0
2.24.25

First computer is Ubuntu, second computer is Gentoo

karelbilek avatar Jan 04 '15 19:01 karelbilek

going through my ancient PRs on github. I no longer have any idea how Python or GPG works. :D should I close this?

karelbilek avatar May 27 '20 07:05 karelbilek