Ticket #2185: TrackerInitialState.cpp.diff
File TrackerInitialState.cpp.diff, 1.1 KB (added by , 16 years ago) |
---|
-
src/kits/tracker/TrackerInitialState.cpp
36 36 // add code to initialize a subset of the mime database, including 37 37 // important sniffer rules 38 38 39 #include <Alert.h> 39 40 #include <Directory.h> 40 41 #include <InterfaceDefs.h> 41 42 #include <Message.h> … … 459 460 { 460 461 // make the large Haiku Logo the default background 461 462 462 // BPath path; 463 BPath path("/boot/beos/etc/artwork"); 463 BPath path; 464 status_t status = find_directory(B_BEOS_ETC_DIRECTORY, &path); 465 if (status < B_OK) { 466 BString errorMessage; 467 errorMessage << "At " << __PRETTY_FUNCTION__ << "\n"; 468 errorMessage << "find_directory() failed. \nReason: "; 469 errorMessage << strerror(status); 470 (new BAlert("AlertError", errorMessage.String(), "OK", NULL, NULL, 471 B_WIDTH_AS_USUAL, B_STOP_ALERT))->Go(); 472 return; 473 } 474 path.Append("artwork"); 464 475 // FSFindTrackerSettingsDir(&path, false); 465 476 // path.Append(kDefaultFolderTemplate); 466 477