macos fix
All checks were successful
BlockStorage/repertory_mac/pipeline/head This commit looks good
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2025-09-07 09:30:05 -05:00
parent 4d20715e26
commit 7fd518a1e5

View File

@@ -287,8 +287,9 @@ void mgmt_app_config::set_auto_start(bool auto_start) {
#if defined(__APPLE__) #if defined(__APPLE__)
const auto *label = "com.fifthgrid.blockstorage.repertory.ui"; const auto *label = "com.fifthgrid.blockstorage.repertory.ui";
auto plist_path = utils::path::combine("~", {"/Library/LaunchAgents"});
auto file = utils::file::file{ auto file = utils::file::file{
utils::path::combine("~", {"/Library/LaunchAgents", label}), utils::path::combine(plist_path, {label}),
}; };
if (auto_start) { if (auto_start) {
utils::plist_cfg cfg{}; utils::plist_cfg cfg{};
@@ -299,7 +300,7 @@ void mgmt_app_config::set_auto_start(bool auto_start) {
}; };
cfg.keep_alive = false; cfg.keep_alive = false;
cfg.label = label; cfg.label = label;
cfg.plist_path = file.get_path(); cfg.plist_path = plist_path;
cfg.run_at_load = true; cfg.run_at_load = true;
cfg.stderr_log = "/tmp/repertory_ui.err"; cfg.stderr_log = "/tmp/repertory_ui.err";
cfg.stdout_log = "/tmp/repertory_ui.out"; cfg.stdout_log = "/tmp/repertory_ui.out";