org
---8<----
if (!_wantedClose || exitStatus != 0)
{
if (_shellProcess->exitStatus() == QProcess::NormalExit)
message = i18n("Program '%1' exited with status %2.", _program, _shellProcess->exitStatus());
elseif (_shellProcess->exitStatus() > 127)
message = i18n("Program '%1' receved signal '%2', _program, convertToSignalName(exitStatus-128);
//according to man bash
else
message = i18n("Program '%1' crashed.", _program);
//FIXME: See comments in Session::monitorTimerDone()
KNotification::event("Finished", message , QPixmap(), QApplication::activeWindow(), KNotification::CloseWhenWidgetActivated);
}
if ( !_wantedClose && _shellProcess->exitStatus() != QProcess::NormalExit && _shellProcess->exitStatus() !> 127)
terminalWarning(message);
else
emit finished();
}
--->8---
ok convertToSignalName() is a non exisitant function but should do the same as kill -l $num
i am unsure if i need to use _shellProcess->exitStatus() or exitStatus
b.t.w. i have verified (see link) that konsole source is the problem of this message and my previus message is true
hi i have a sipmle patch could somebody fix and commit for me?
see: https:/ /projects. kde.org/ projects/ kde/kdebase/ konsole/ repository/ revisions/ master/ entry/src/ Session. cpp#L777
org >exitStatus( ) == QProcess: :NormalExit) >exitStatus( )); >exitStatus( ) > 127) Name(exitStatus -128);
---8<----
if (!_wantedClose || exitStatus != 0)
{
if (_shellProcess-
message = i18n("Program '%1' exited with status %2.", _program, _shellProcess-
elseif (_shellProcess-
message = i18n("Program '%1' receved signal '%2', _program, convertToSignal
//according to man bash
else
message = i18n("Program '%1' crashed.", _program);
//FIXME: See comments in Session: :monitorTimerDo ne() on::event( "Finished" , message , QPixmap(),
QApplicatio n::activeWindow (),
KNotificati on::CloseWhenWi dgetActivated) ; >exitStatus( ) != QProcess: :NormalExit && _shellProcess- >exitStatus( ) !> 127) arning( message) ; Name() is a non exisitant function but should do the same as kill -l $num >exitStatus( ) or exitStatus
KNotificati
}
if ( !_wantedClose && _shellProcess-
terminalW
else
emit finished();
}
--->8---
ok convertToSignal
i am unsure if i need to use _shellProcess-
b.t.w. i have verified (see link) that konsole source is the problem of this message and my previus message is true