[ui] Add auto-mount on first launch functionality #52
This commit is contained in:
		| @@ -216,15 +216,15 @@ void mgmt_app_config::set_auto_start(bool auto_start) { | ||||
|   if (utils::file::change_to_process_directory()) { | ||||
| #if defined(__linux__) | ||||
|     if (auto_start) { | ||||
|       utils::create_autostart_opts opts{}; | ||||
|       opts.app_name = "repertory"; | ||||
|       opts.comment = "Mount utility for AWS S3 and Sia"; | ||||
|       opts.exec_args = {"-ui", "-lo"}; | ||||
|       opts.exec_path = utils::path::combine(".", {"repertory"}); | ||||
|       opts.icon_path = utils::path::combine(".", {"repertory.png"}); | ||||
|       opts.terminal = true; | ||||
|       utils::autostart_cfg cfg{}; | ||||
|       cfg.app_name = "repertory"; | ||||
|       cfg.comment = "Mount utility for AWS S3 and Sia"; | ||||
|       cfg.exec_args = {"-ui", "-lo"}; | ||||
|       cfg.exec_path = utils::path::combine(".", {"repertory"}); | ||||
|       cfg.icon_path = utils::path::combine(".", {"repertory.png"}); | ||||
|       cfg.terminal = true; | ||||
|  | ||||
|       if (utils::create_autostart_entry(opts, false)) { | ||||
|       if (utils::create_autostart_entry(cfg, false)) { | ||||
|         utils::error::handle_info(function_name, | ||||
|                                   "created auto-start entry|name|repertory"); | ||||
|       } else { | ||||
| @@ -244,7 +244,7 @@ void mgmt_app_config::set_auto_start(bool auto_start) { | ||||
|  | ||||
| #if defined(_WIN32) | ||||
|     if (auto_start) { | ||||
|       shortcut_cfg cfg{}; | ||||
|       utils::shortcut_cfg cfg{}; | ||||
|       cfg.arguments = {L"-ui", L"-lo"}; | ||||
|       cfg.exe_path = utils::path::combine(L".", {L"repertory"}); | ||||
|       cfg.location = utils::path::absolute(L"."); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user