Version: 4.2.2 (using KDE 4.6.5) OS: Linux Every time I close and open a session it loses the working dir in Konsole. It's a pretty minor detail, but not having to cd to the project dir every time I open it would be great. Reproducible: Always Steps to Reproduce: Open Project Go to built-in Konsole cd to a different directory Close Kdevelop Open the project Actual Results: Konsole's working dir is ~ Expected Results: Konsole remembers the last used working directory
This is an interesting idea but as far as I know such behavior would be unique among terminal emulators. Every time a terminal emulator is opened a new interactive shell instance is created on pty (pseudoterminal) and, in the case of bash, /etc/profile, ~/.bash_profile, ~/.bash_login, and ~/.profile are executed in order. It is the execution of those scripts (as well as various system defaults and variables) that determine the working directory that the user is left in. In this case it should be possible to modify your bash scripts to present you with the same directory as you were in when you ended the previous session but that is beyond the scope of this report. I recommend this bug be closed WONTFIX.
@Adam So you suggest that there is no way to change directory in embedded terminal after KDevelop finish its running, when terminal has been came through/instanced? I think there is the way that allows change directory in this moment. All profiles you mentioned can be run before and In my opinion should not be used as a part of functionality of KDevelop. Application can remember last directory in moment of closing and can restore it, I think. By the way I observed that KDevelop creates new instance of konsole in Code and Debug perspective and in these terminals directories are different. :/
Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved.
Unfortunately my workflow has forced me away from kDevelop, so I'll close this as it's no longer something I can comment on.