Use the standard MIME DB path when running under Haiku, but a different one when running under BeOS (so BeOS' MIME DB is not affected when running tests).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10784 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
Private mime database functions and constants
|
Private mime database functions and constants
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <AppMisc.h>
|
||||||
#include <DataIO.h>
|
#include <DataIO.h>
|
||||||
#include <Directory.h>
|
#include <Directory.h>
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
@@ -37,8 +38,12 @@ namespace BPrivate {
|
|||||||
namespace Storage {
|
namespace Storage {
|
||||||
namespace Mime {
|
namespace Mime {
|
||||||
|
|
||||||
//const std::string kDatabaseDir = "/boot/home/config/settings/beos_mime";
|
static const char *sHaikuDBDir = "/boot/home/config/settings/beos_mime";
|
||||||
const std::string kDatabaseDir = "/boot/home/config/settings/obos_mime";
|
// when running natively under Haiku
|
||||||
|
static const char *sBeOSDBDir = "/boot/home/config/settings/obos_mime";
|
||||||
|
// when running under BeOS
|
||||||
|
const std::string kDatabaseDir
|
||||||
|
= (is_running_on_haiku() ? sHaikuDBDir : sBeOSDBDir);
|
||||||
const std::string kApplicationDatabaseDir = kDatabaseDir + "/application";
|
const std::string kApplicationDatabaseDir = kDatabaseDir + "/application";
|
||||||
|
|
||||||
#define ATTR_PREFIX "META:"
|
#define ATTR_PREFIX "META:"
|
||||||
|
|||||||
Reference in New Issue
Block a user