Summary: | KF5-based doesn't display the authorization dialog for ssh | ||
---|---|---|---|
Product: | [Applications] kdesvn | Reporter: | Safa Alfulaij <safa1996alfulaij> |
Component: | General | Assignee: | KDESvn default assignee <kdesvn-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Ch.Ehrlicher, luigi.toscano |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Safa Alfulaij
2017-01-31 04:53:07 UTC
If this requires ksshaskpass, and this error only appears in Plasma 5.9, it could be a duplicate of bug 376228. I faced it even before Plasma 5.8 maybe :-) Months months ago.. Looks like this was already fixed by Luigi Toscano, adding them to this bug I fixed the code of kdesvnaskpass, few steps of the porting to KF5 were missing. I could not test if this change fixed the bug, that's why I did not CC it in the commit message. It may have fixed the bug as kdesvnaskpass does not print error messages related to the command line parser on the console anymore. This is the commit: https://commits.kde.org/kdesvn/8be5c9f4f27d3312715c0d60ea6c088ae32283b7 With latest git version (and also with the one without the changes from Luigi Toscano), I can not reproduce the behaviour - kdesvnaskpass is opened every time ... Any way to debug the roots of the problem? I think I'll go deep and check the code and recompile it with changes till I reach to the issue, but if I can skip this it will be better :) Did you really try the latest master - it works for me and have no glue why this should not work. I just downloaded the latest (using AUR) and it still have the same exact problem. Opening from terminal shows the "Enter passphrase" promot, and from Plasma it shows that "Unable to connect" ssh problem. When I switch back to 1.7, it works without changing any of my setup. It might be a wrong setup, but I really don't know. :-) 3 lines, 3 lines of code. diff --git a/src/helpers/sshagent.cpp b/src/helpers/sshagent.cpp index 6e3a9635..e624a6cd 100644 --- a/src/helpers/sshagent.cpp +++ b/src/helpers/sshagent.cpp @@ -92,6 +92,9 @@ void SshAgent::askPassEnv() qputenv("SSH_ASKPASS", FORCE_ASKPASS); #else QByteArray pro = BIN_INSTALL_DIR; + if (!pro.startsWith('/')) { + pro.prepend('/'); + } if (!pro.endsWith('/')) { pro.append('/'); } From https://i.imgur.com/6EBFcdV.png to https://i.imgur.com/I6D8ErX.png Candy for all 🍬🍬 P.S: That's one big promot window.. I fixed it a slightly different way, but should work too ... https://commits.kde.org/kdesvn/8cdc05717b0636384f22543f43b516fde7439c1e |