Bug 153865

Summary: When the shell exits in the built-in terminal, kate starts another
Product: [Applications] kate Reporter: Ivo Anjo <ivo>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: konsole-devel, peter.penz19
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ivo Anjo 2007-12-11 20:08:31 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

Now that the exit bug is fixed (#153646), I was able to notice this one, similar to dolphin's bug #153648, but I don't know if this can be fixed kde-wide or per-application.

When typing "exit" on the terminal pane inside kate, the pane doesn't hide, and instead starts a new shell. 
 
I think when exiting, the terminal panel should disappear (see kate and konqueror on kde3).
Comment 1 Thomas Friedrichsmeier 2007-12-12 13:30:03 UTC
Probably this will need adjustments both in katepart and per application. Hence CCing konsole-devel and Peter Penz (listed as assignee in bug #153648).

I think it's not entirely unreasonable for the konsolepart to restart when the (last) session has closed, instead of self-destructing, so this behavior could be left up to the embedding application.

If this is the desired behavior, however, what would be needed, is a signal in the konsolepart that informs the host when this happens (e.g. doingRestart() emitted as the first thing in Part::restart(), so the hosting app can decide whether to hide the terminal window or not. Of course in a second step, dolphin and kate would need to be adjusted to actually listen for and respond to this signal, which is why I'm just CCing instead of re-assigning.
Comment 2 Thomas Friedrichsmeier 2007-12-19 16:24:35 UTC
Fixed (in the konsolepart) in SVN revision 750276 by Rafael Fernández López.