From 7fd518a1e558659b488b9a251277128ce6ec650b Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 7 Sep 2025 09:30:05 -0500 Subject: [PATCH] macos fix --- repertory/repertory/src/ui/mgmt_app_config.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/repertory/repertory/src/ui/mgmt_app_config.cpp b/repertory/repertory/src/ui/mgmt_app_config.cpp index 8ca3497c..ba481b3f 100644 --- a/repertory/repertory/src/ui/mgmt_app_config.cpp +++ b/repertory/repertory/src/ui/mgmt_app_config.cpp @@ -287,8 +287,9 @@ void mgmt_app_config::set_auto_start(bool auto_start) { #if defined(__APPLE__) const auto *label = "com.fifthgrid.blockstorage.repertory.ui"; + auto plist_path = utils::path::combine("~", {"/Library/LaunchAgents"}); auto file = utils::file::file{ - utils::path::combine("~", {"/Library/LaunchAgents", label}), + utils::path::combine(plist_path, {label}), }; if (auto_start) { utils::plist_cfg cfg{}; @@ -299,7 +300,7 @@ void mgmt_app_config::set_auto_start(bool auto_start) { }; cfg.keep_alive = false; cfg.label = label; - cfg.plist_path = file.get_path(); + cfg.plist_path = plist_path; cfg.run_at_load = true; cfg.stderr_log = "/tmp/repertory_ui.err"; cfg.stdout_log = "/tmp/repertory_ui.out";