Version: (using KDE KDE 3.3.0) Installed from: RedHat RPMs OS: Linux I'm using konsole_part and connect to the signal processExited() to get information when the user exited the shell. While in Konsole itself the exit code is used to display a little information about it, in konsole_part it isn't passed by the signal, although the information is available and only a couple (3 or so) lines are needed to do so! Why? Or is there an other way to retrieve the exit code?
It is possible no one has needed/asked for the exit code in konsole_part before. What 3 lines of code are needed for this to work?
There is now (kde 3.5) processExited( KProcess * ) signal in konsole part. The obtained KProcess pointer can be used within the signal handler to obtain exit status of the process. However, it is not guaranteed to remain valid after your slot returns, so please keep that in mind.