macos fix
This commit is contained in:
@@ -286,6 +286,7 @@ void mgmt_app_config::set_auto_start(bool auto_start) {
|
|||||||
#endif // defined(_WIN32)
|
#endif // defined(_WIN32)
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
|
const auto *label = "com.fifthgrid.blockstorage.repertory.ui";
|
||||||
auto file = utils::file::file{
|
auto file = utils::file::file{
|
||||||
utils::path::combine("~", {"/Library/LaunchAgents", label}),
|
utils::path::combine("~", {"/Library/LaunchAgents", label}),
|
||||||
};
|
};
|
||||||
@@ -297,7 +298,7 @@ void mgmt_app_config::set_auto_start(bool auto_start) {
|
|||||||
"-lo",
|
"-lo",
|
||||||
};
|
};
|
||||||
cfg.keep_alive = false;
|
cfg.keep_alive = false;
|
||||||
cfg.label = "com.fifthgrid.blockstorage.repertory.ui";
|
cfg.label = label;
|
||||||
cfg.plist_path = file.get_path();
|
cfg.plist_path = file.get_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";
|
||||||
|
|||||||
Reference in New Issue
Block a user