Bug 169058

Summary: Preference to reuse CWD of previously active terminal instance dysfunctional with KPart
Product: [Applications] konsole Reporter: Ismael Barros <razielmine>
Component: kpartAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: adaptee, hein, henes5am, kost-bebix
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: /home/raziel/.kde/share/config/konsolerc
/home/raziel/.kde/share/config/yakuakerc

Description Ismael Barros 2008-08-13 20:07:06 UTC
Version:           unknown (using 4.1.1 (KDE 4.1.0 (4.1 >= 20080722)), Arch Linux)
Compiler:          gcc
OS:                Linux (i686) release 2.6.25-ARCH

In my shell profile I have activated "Start in same directory as current tab" (it was a default option), and it works in konsole, but it doesn't in yakuake: every new tab I open gets opened in ~/
Comment 1 Ismael Barros 2008-08-13 20:08:02 UTC
Created attachment 26840 [details]
/home/raziel/.kde/share/config/konsolerc
Comment 2 Ismael Barros 2008-08-13 20:08:31 UTC
Created attachment 26841 [details]
/home/raziel/.kde/share/config/yakuakerc
Comment 3 Eike Hein 2008-08-13 20:09:55 UTC
Ressigning to Konsole (Yakuake embeds the Konsole KPart component).
Comment 4 Eike Hein 2008-08-13 20:22:08 UTC
Robert: The background for this is that the KPart only starts a shell when TerminalInterface::showShellInDir() is called, which Yakuake currently does with 'KUser().homeDir()' as a reasonable default, thus inherently circumventing "Start in same directory as current tab". However, when called with QString::null/"", it doesn't work either, and that's about the only idea I had.

Of course, the underlying problem is figuring out the "current tab" in the KPart case. This might be related to #156919, which Yakuake needs to give an implementation of session management a shot anyway. If I can get the CWD out of a a given part, I can hand it to TerminalInterface::showShellInDir(), which leaves figuring out whether the profile has "Start in same directory as current tab" set. Alternatively this has to be solved inside the Konsole/KPart code.
Comment 5 Eike Hein 2008-08-13 20:23:30 UTC
Renamed for clarity. Confirming bug.
Comment 6 Christophe Marin 2008-08-13 23:02:06 UTC
reassign to the product owner :)
Comment 7 Eike Hein 2008-08-14 15:44:39 UTC
Yeah, that might indeed be useful to get Robert in the loop ;). Thanks Christophe.
Comment 8 Eike Hein 2010-02-19 12:30:45 UTC
*** Bug 227656 has been marked as a duplicate of this bug. ***
Comment 9 Jekyll Wu 2011-08-23 08:54:33 UTC

*** This bug has been marked as a duplicate of bug 214547 ***