[Konsole-devel] [Bug 297222] "Start in same directory as current tab" doesn't work

Jekyll Wu adaptee at gmail.com
Mon Apr 2 15:31:32 UTC 2012


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

Jekyll Wu <adaptee at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |konsole-devel at kde.org

--- Comment #2 from Jekyll Wu <adaptee at gmail.com> ---
That "Start in same directory as current tab" option won't work at all unless
konsolepart itself provides its own tabbar and supports multiple tabs, just
like stand-alone Konsole.  Clearly that is not how konsolepart works at the
moment.  Each konsolepart is limited to run only one session, or more precisely
only the session created using the default profile.

It is not hard to make konsolepart show tabbar and support multiple tabs
itself. However, that makes me wonder what a konsolepart is intend to be. Is it
intended to be a simple widget which can be embedded into other KDE
applications to get a terminal, or is it intended to resemble the features of
stand-alone Konsole as much as possible? 

Putting above question aside, if konsolepart provides tabbar itself, that would
introduce another problem for yakuake since yakuake has its own tabbar.

So make a short summary:

1). the feature requested in this report and bug 214547 won't work unless
konsolepart supports multiple tabs itself
2). it is unlikely for konsolepart to support multiple tabs in the near future

But, that doesn't mean it is impossible for yakuake to resemble that feature
from stand-alone Konsole. It should be relative easy after konsolepart adds a
few slots like these:

  * QString currentWorkingDirectory() const;   (already done)
  * void createSession(const QString& profileName=QString(), const QString&
dir=QString() );
  * QStringList profileNameList() const ;

Another needed change is konsolepart should stop creating session
automatically. That means yakuake and other hosting applications need to call
createSession(...) explicitly after getting an instance of konsolepart.

@Eike, please read my thoughts in
http://lists.kde.org/?l=konsole-devel&m=133242676514410&w=2. I would like to
hear about your idea.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the konsole-devel mailing list