mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
Update launch settings
This commit is contained in:
@@ -82,11 +82,11 @@ private:
|
|||||||
std::wstring espresso_settings_location = PTSettingsHelper::get_module_save_file_location(MODULE_NAME);
|
std::wstring espresso_settings_location = PTSettingsHelper::get_module_save_file_location(MODULE_NAME);
|
||||||
|
|
||||||
std::wstring executable_args = L"--config " + espresso_settings_location;
|
std::wstring executable_args = L"--config " + espresso_settings_location;
|
||||||
executable_args.append(std::to_wstring(powertoys_pid));
|
//executable_args.append(std::to_wstring(powertoys_pid));
|
||||||
|
|
||||||
SHELLEXECUTEINFOW sei{ sizeof(sei) };
|
SHELLEXECUTEINFOW sei{ sizeof(sei) };
|
||||||
sei.fMask = { SEE_MASK_NOCLOSEPROCESS | SEE_MASK_FLAG_NO_UI };
|
sei.fMask = { SEE_MASK_NOCLOSEPROCESS | SEE_MASK_FLAG_NO_UI };
|
||||||
sei.lpFile = L"modules\\Espresso\\Espresso.exe";
|
sei.lpFile = L"modules\\Espresso\\Espresso.Shell.exe";
|
||||||
sei.nShow = SW_SHOWNORMAL;
|
sei.nShow = SW_SHOWNORMAL;
|
||||||
sei.lpParameters = executable_args.data();
|
sei.lpParameters = executable_args.data();
|
||||||
if (!ShellExecuteExW(&sei))
|
if (!ShellExecuteExW(&sei))
|
||||||
|
|||||||
Reference in New Issue
Block a user