From 3667f6efdbeac23c708a9a610391cc4780b9fd54 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Fri, 21 Aug 2015 23:23:26 +0200 Subject: [PATCH] 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. --- src/kits/app/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/app/Application.cpp b/src/kits/app/Application.cpp index cf83e1df88..cda2c6d891 100644 --- a/src/kits/app/Application.cpp +++ b/src/kits/app/Application.cpp @@ -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