Merge lp:~develop7/synapse-project/ssh-plugin-tweaks into lp:synapse-project
Proposed by
Andrei Dziahel
Status: | Merged |
---|---|
Merged at revision: | 481 |
Proposed branch: | lp:~develop7/synapse-project/ssh-plugin-tweaks |
Merge into: | lp:synapse-project |
Diff against target: |
67 lines (+28/-4) 1 file modified
src/plugins/ssh-plugin.vala (+28/-4) |
To merge this branch: | bzr merge lp:~develop7/synapse-project/ssh-plugin-tweaks |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alberto Aldegheri | Approve | ||
Review via email: mp+76444@code.launchpad.net |
Description of the change
In synapse 0.2.8 after updating ssh_config (like adding new hosts) you have to restart synapse. After applying this patch, ssh_config becomes monitored by glib and is reparsed automatically on updating.
Code is definitely not production-ready, and there could be some caveats, so I'd appreciate to be reviewed by someone experienced.
To post a comment you must log in.
well, it works for me, but there's some things I'm worried about
Like following:
At L51 diagnostic message is printed on detecting changes in file. And here's what is really printed on saving .ssh/config:
% ./src/ui/synapse
[16:08:48.986272 Info] Starting up...
...skip...
[16:09:10.456628 Info] [SshPlugin] ssh_config is changed, reparsing
[16:09:10.456982 Info] [SshPlugin] ssh_config is changed, reparsing
[16:09:10.457302 Info] [SshPlugin] ssh_config is changed, reparsing
[16:09:10.457462 Info] [SshPlugin] ssh_config is changed, reparsing
Reparsing is done 4 times every single save. And I don't know, why. Any ideas?