Added libsecret #826
base: master
Are you sure you want to change the base?
Added libsecret #826
Conversation
Apart from the commit message typo ("secure" instead of "secret" - this can be fixed when we merge it) and the whitespace issues, I think this is fine. |
[use_libsecret=yes], | ||
[use_libsecret=no]) | ||
|
||
if test "x$use_libsecret" = "xyes"; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Use COMMON_CFLAGS not CPPFLAGS. (same for LIBS)
- Default to yes not auto, and set to no on failure.
- Use libsecret instead of use_libsecret to match other vars.
Just found a bug:
Any suggestions? |
@ManiacTwister Probably the first option except check On an unrelated note it doesn't seem you check at all if the storing succeeds (or is supported at least)? Not every DE will have a keyring and it needs to fallback to the config file. |
@TingPing Error handling isn't really possible when using |
Well you have to find a way or disable this feature by default making it nearly useless.
How would servlist know we are quitting? You can just call servlist_save once in hexchat_exit. |
I'll look a bit depper into libsecret, maybe there is a elegant way to do this.
As far as i understand the close-button callback, it is responsible for exiting hexchat if no sessions are open, so this should work. |
I see, setting it there should be fine then. |
I have added an fallback now but i don't know if it it's really clean to do it like this. If you agree with the changes in the new branch [1] i'll merge it whit the pull request |
@ManiacTwister Seems to work fine but I would say if it fails once it should just set a preference to disable the feature entirely (also giving users the option to disable it manually) not retry it multiple times every time. |
@TingPing Added config option: ManiacTwister/hexchat@01f5b87...e787198 |
@ManiacTwister I like it other than the setup page, it is just empty and makes no more sense under Network than in the advanced page. |
@TingPing Done and merged the changes, but i'm not sure if the libsecret setting should be moved up to the other checkbox-settings. (maybe between |
@ManiacTwister before anything - rebase it against our master as github itself shows there are some conflicts - and you could reduce numer of commits. |
@@ -0,0 +1,32 @@ | |||
/* HexChat | |||
* Copyright (C) 2013 Robin Rieger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
odd I didn't think this pull was that old... perhaps the copyright should be updated
Happy 3. Birthday to my pullrequest |
@ManiacTwister So what I really want to happen is some abstract interface for storing passwords with backends for OSX, Windows, libsecret, plaintext, etc. This PR, while perhaps functional, is sort of an ugly mess of ifdefs throughout the code base that is not easily extended. Also I don't think you ever handled migration? |
@ManiacTwister @TingPing This seems like a cool idea, has anybody looked at it recently? |
As mentioned in the other pull request ( #825 ) libsecret is the replacement for gnome-keyring, so here is the new implementation.
cheers