[ui] Add auto-mount on first launch functionality #52

This commit is contained in:
2025-09-06 18:24:49 -05:00
parent f473d5c855
commit 98a277713b
2 changed files with 9 additions and 5 deletions

View File

@@ -244,9 +244,12 @@ void mgmt_app_config::set_auto_start(bool auto_start) {
#if defined(_WIN32)
if (auto_start) {
if (utils::create_shortcut(utils::path::combine(L".", {L"repertory"}),
{L"-ui", L"-lo"}, utils::path::absolute(L"."),
L"repertory", false)) {
shortcut_cfg cfg{};
cfg.arguments = {L"-ui", L"-lo"};
cfg.exe_path = utils::path::combine(L".", {L"repertory"});
cfg.location = utils::path::absolute(L".");
cfg.shortcut_name = L"repertory";
if (utils::create_shortcut(cfg, false)) {
utils::error::handle_info(function_name,
"created auto-start entry|name|repertory");
} else {