How do I get the current directory of a konsole kpart

216 views Asked by At

Exactly what it says on the tin. Also is there any way to tell what is running inside the shell?*

I suppose I could do this by looking up finding process with matching parent pids* but is that portable to windows? And how would you look up current directory of a process given pid*.

*(most to least preferable) qt or kde api/other crossplatform api/*nix and windows api?

1

There are 1 answers

0
Roman A. Taycher On BEST ANSWER

It looks like TerminalInterfaceV2 might be exactly what I need, any extra info about it would be appreciated.