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

Mathias Panzenböck grosser.meister.morti at gmx.net
Sat Nov 14 22:16:57 UTC 2009


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





--- Comment #2 from Mathias Panzenböck <grosser meister morti gmx net>  2009-11-14 23:16:56 ---
It is possible. I've just written a patch. I'll upload it to gitorious or
github in a minute and post a link here (usually I like hg more but it failed
to clone the svn repo for some reason). :)

The API to retrieve the PWD is this:
http://api.kde.org/4.x-api/kdelibs-apidocs/interfaces/html/classTerminalInterfaceV2.html

Well, this way you get the PID of the terminal. You can get the PWD by reading
/proc/$PID/cwd (like konsole does it already!). Well yes, this is Linux only.
But better than nothing. Maybe one can do something similar under BSD. I guess
Yakuake is not used on other OSes.

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