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