[Konsole-devel] [Bug 242114] Konsole resolves symlinks for initial path, should mimic CD/PWD behavior

Danny Daemonic DannyDaemonic at gmail.com
Sun Sep 18 05:16:56 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=242114





--- Comment #11 from Danny Daemonic <DannyDaemonic gmail com>  2011-09-18 05:16:55 ---
I looked at the latest code on git and I think KPty should keep track of the
initial directory. Since Pty uses KPty it also seems like an acceptable
location for the change, but less so.

Ideally we'd override setWorkingDirectory, but it's not virtual. So I propose a
new function, setInitialDirectory, to be called in the place of
setWorkingDirectory in Session.cpp (the only place setWorkingDirectory is
called on a Pty). It would use setenv if a member of KPty, or
addEnvironmentVariables if a member of Pty, to set PWD to the path passed in as
a QString.

It's such a small fix, but I could provide a patch if it would make a
difference. I have KDE 4.6.5 installed in a Gentoo distro and could easily
provide a patch against that version of Konsole. It's a simple change but I
don't know how much the code has changed since then. I could also provide an
untested patch against the latest source. (As I mentioned before, 4.7 is not
stable for me.)

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list