Fix copy&paste error and double launch of Terminal.

Apparently the "Deskbar" part was a copy&paste error. Also there was
an additional launch call making two Terminal windows come up. Should
fix #8243.
This commit is contained in:
Michael Lotz
2011-12-15 20:04:53 +01:00
parent 8ad8d2e5d2
commit 3de4c1e20b
@@ -368,10 +368,9 @@ ProcessController::MessageReceived(BMessage *message)
{
BPath terminalPath;
if (find_directory(B_SYSTEM_APPS_DIRECTORY, &terminalPath) == B_OK
&& terminalPath.Append("Deskbar") == B_OK) {
&& terminalPath.Append("Terminal") == B_OK) {
launch(kTerminalSig, terminalPath.Path());
}
launch(kTerminalSig, terminalPath.Path());
break;
}