diff --git a/repertory/Info.plist.in b/repertory/Info.plist.in
index 9af24fe0..f6e9ce14 100644
--- a/repertory/Info.plist.in
+++ b/repertory/Info.plist.in
@@ -13,7 +13,7 @@
@PROJECT_MAJOR_VERSION@.@PROJECT_MINOR_VERSION@.@PROJECT_REVISION_VERSION@-@PROJECT_RELEASE_ITER@_@PROJECT_GIT_REV@
CFBundlePackageType
APPL
- LSBackgroundOnly
+ LSUIElement
diff --git a/repertory/repertory/main.cpp b/repertory/repertory/main.cpp
index 8b6b3fb3..baf5506c 100644
--- a/repertory/repertory/main.cpp
+++ b/repertory/repertory/main.cpp
@@ -88,7 +88,26 @@ auto main(int argc, char **argv) -> int {
#endif // defined(__APPLE__)
ret = static_cast(exit_code::ui_failed);
} else {
+#if defined(__APPLE__)
+ project_cleanup();
+
+ ret = utils::create_daemon([&]() -> int {
+ if (not repertory::project_initialize()) {
+ repertory::project_cleanup();
+ return -1;
+ }
+
+ if (not utils::file::change_to_process_directory()) {
+ return -1;
+ }
+
+ ui::handlers handlers(&config, &server);
+ project_cleanup();
+ return 0;
+ });
+#else
ui::handlers handlers(&config, &server);
+#endif
}
}
} else {