[Konsole-devel] [Bug 156919] Embedded terminal should notify the host about changes in current working directory

Stefan Becker stefan.becker at nokia.com
Wed Sep 10 19:19:09 UTC 2008


http://bugs.kde.org/show_bug.cgi?id=156919


Stefan Becker stefan becker nokia com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stefan.becker at nokia.com




--- Comment #3 from Stefan Becker <stefan becker nokia com>  2008-09-10 21:19:05 ---
This will change the part interface. Can this be done in a backward compatible
way? I'm new to this stuff...


This is a difficult thing to implement as konsole isn't the process and
therefore doesn't see any state changes from it. It can only poll for changes
from its child process(es).


I see three ways how to do this:

a) new signal Konsole::SessionManager::directoryChanged()

I looked at yakuake. If I change the directory the window title gets updated
shortly afterwards just like the tabs in konsole. So I assume yakuake already
receives Konsole::Session::titleChanged() signals? Or how does yakuake know?


b) implement the same functionality as in Konsole::SessionController

Use a one-shot, 2 second QTimer that is armed at the end of
Konsole::Part::sendInput(). The timeout() signal will be connected to a new
slot that sends the Konsole::Part::directoryChanged() signal when necessary.


c) implement a new part method/signal that can be used to poll the current
directory

Regular polling would then be the responsibility of the client. This solution
might be necessary if a KPart is not allowed to use a QTimer.


Comments?


-- 
Configure bugmail: http://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