Ticket #7953: launchbox.diff
File launchbox.diff, 1.1 KB (added by , 13 years ago) |
---|
-
src/apps/launchbox/MainWindow.cpp
141 141 status_t ret = be_roster->Launch(button->Ref()); 142 142 if (ret < B_OK && ret != B_ALREADY_RUNNING) { 143 143 BString errStr(B_TRANSLATE("Failed to launch '%1'.\n" 144 "\nError: 144 "\nError:")); 145 145 BPath path(button->Ref()); 146 146 if (path.InitCheck() >= B_OK) 147 147 errStr.ReplaceFirst("%1", path.Path()); … … 156 156 if (!launchedByRef && button->AppSignature()) { 157 157 status_t ret = be_roster->Launch(button->AppSignature()); 158 158 if (ret != B_OK && ret != B_ALREADY_RUNNING) { 159 BString errStr(B_TRANSLATE(" Failed to launch application "160 "with signature '%2'.\n\nError: 159 BString errStr(B_TRANSLATE("\n\nFailed to launch application " 160 "with signature '%2'.\n\nError:")); 161 161 errStr.ReplaceFirst("%2", button->AppSignature()); 162 162 errorMessage << errStr.String() << " "; 163 163 errorMessage << strerror(ret);