Bug 283209 - Built in Konsole should remember it's working dir
Summary: Built in Konsole should remember it's working dir
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: konsole integration (show other bugs)
Version: 0.9.94
Platform: Gentoo Packages Linux
: NOR minor
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-02 22:11 UTC by Nick W
Modified: 2021-03-09 23:46 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick W 2011-10-02 22:11:12 UTC
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
Comment 1 Adam Hunt 2015-10-07 16:57:52 UTC
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.
Comment 2 Piotr Mierzwinski 2015-10-24 15:44:16 UTC
@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. :/
Comment 3 Justin Zobel 2021-03-09 23:42:26 UTC
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.
Comment 4 Nick W 2021-03-09 23:46:57 UTC
Unfortunately my workflow has forced me away from kDevelop, so I'll close this as it's no longer something I can comment on.