[Konsole-devel] [Bug 214547] KPart needs an API to retrieve $PWD

Eike Hein hein at kde.org
Sun Nov 15 08:11:12 UTC 2009


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





--- Comment #6 from Eike Hein <hein kde org>  2009-11-15 09:11:10 ---
Right, I forgot about the TerminalInterfaceV2 additions for Dolphin :).
However: There's also the fact that Konsole profiles already have a "Start in
same directory as current tab" checkbox, which however is non-functional for
the KPart -- imho it'd be better to fix this in Konsole, which also takes care
of the "making it optional" part.

And for a shortcut, I still think engineering-wise there should be an API in
the KPart to avoid the code duplication between Konsole and Yakuake, e.g. so
that when a BSD solution is found it can be added in one place rather than two.
I'm not very fond of hacks.

Regarding your point in commant #5, you're right in principle. I use contains()
out of habit (and consciously) because value() returns a default-constructed
value for a non-existing key, which can bite you in the ass in some situations.
It doesn't matter for a pointer type, as you rightly point out - a
default-constructed one is 0 - but I generally find it more useful to foster
cautious habits than micro-optimize. However as with any programmer the
efficiency loss has been nagging me too, and now that someone else has noticed
I might feel forced to change it ;).

-- 
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