BApplication: Avoid create_app_meta_mime() for the registrar.

BApplication::_InitData() already avoided the use of BRoster from the
registrar (and launch_daemon) where it isn't available. Since
create_app_meta_mime() indirectly just sends a message to the registrar
using BRoster, it too cannot work when the registrar isn't available.
This commit is contained in:
Michael Lotz 2015-08-21 23:23:26 +02:00
parent 811f0164a0
commit 3667f6efdb

View File

@ -509,7 +509,7 @@ BApplication::_InitData(const char* signature, bool initGUI, status_t* _error)
// create meta MIME
BPath path;
if (path.SetTo(&ref) == B_OK)
if (registerApp && path.SetTo(&ref) == B_OK)
create_app_meta_mime(path.Path(), false, true, false);
#ifndef RUN_WITHOUT_APP_SERVER