[ui] Add auto-mount on first launch functionality #52
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user