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:
@@ -368,10 +368,9 @@ ProcessController::MessageReceived(BMessage *message)
|
|||||||
{
|
{
|
||||||
BPath terminalPath;
|
BPath terminalPath;
|
||||||
if (find_directory(B_SYSTEM_APPS_DIRECTORY, &terminalPath) == B_OK
|
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());
|
||||||
}
|
}
|
||||||
launch(kTerminalSig, terminalPath.Path());
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user