Patch from Kaoutsis: replace hard coded path with find_directory(B_BEOS_ETC_DIRECTORY, ...)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25461 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b2208589c9
commit
f61b0e49e0
@ -36,6 +36,7 @@ All rights reserved.
|
||||
// add code to initialize a subset of the mime database, including
|
||||
// important sniffer rules
|
||||
|
||||
#include <Alert.h>
|
||||
#include <Directory.h>
|
||||
#include <InterfaceDefs.h>
|
||||
#include <Message.h>
|
||||
@ -459,8 +460,18 @@ TTracker::InstallTemporaryBackgroundImages()
|
||||
{
|
||||
// make the large Haiku Logo the default background
|
||||
|
||||
// BPath path;
|
||||
BPath path("/boot/beos/etc/artwork");
|
||||
BPath path;
|
||||
status_t status = find_directory(B_BEOS_ETC_DIRECTORY, &path);
|
||||
if (status < B_OK) {
|
||||
BString errorMessage;
|
||||
errorMessage << "At " << __PRETTY_FUNCTION__ << "\n";
|
||||
errorMessage << "find_directory() failed. \nReason: ";
|
||||
errorMessage << strerror(status);
|
||||
(new BAlert("AlertError", errorMessage.String(), "OK", NULL, NULL,
|
||||
B_WIDTH_AS_USUAL, B_STOP_ALERT))->Go();
|
||||
return;
|
||||
}
|
||||
path.Append("artwork");
|
||||
// FSFindTrackerSettingsDir(&path, false);
|
||||
// path.Append(kDefaultFolderTemplate);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user