macos fix
This commit is contained in:
		| @@ -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"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user