Open DHowett opened 2 years ago
I feel like we've discussed this before on this repo. I bet I linked it to #9992, but I could see this as something separate, tbh.
Şuradan taşındı:MSFT-40653626
Şu iki şeyi yapabilsek ne güzel olurdu:
- Girişte başlat ayarımız tarafından giriş yapıldığında Terminal başlatıldığında için ayrı bir başlatma moduna sahip olun.
- Bunu elde ettikten sonra, simge durumuna küçültülmüş . Bu, insanların başlangıçta Terminal'in simge durumuna küçültülmüş olarak başlatılması gerektiğini belirtmesine izin verir ... ancak aksi takdirde normal şekilde başlatılması gerekir.
notes:
name value description StartupTask 1020 The app was activated because the app is specified to launch at system startup or user log-in.
And #14425 adds support for activation event args.
I bet we could:
StartOnUserLogin
for disabled
, normal
, minimized
, headless
WindowEmperor::HandleCommandlineArgs
, we get the Activation args. If it's for a StartupTask, then goody, we can change the logic based on that property:
normal
: don't change anythingheadless
: don't open a window, manually enable compatibility.allowHeadless
in the emperor (at least till the next settings reload)minimized
: replace launchMode
with minimized
for all the windows we're restoring.............minimized
is a silly value here. Copying notes from my whiteboard, because I just need to erase them at this point:
Can we tell if we're started for a startupTask
just from the AppExecAlias?
if (startupTask
&& settings.StartOnLogin() == Headless
)
{
don't make window
start monarch
}
Admittedly, that was written a solid year ago, so I'm not entirely sure what it means anymore.
Ported from MSFT-40653626
It would be nice if we could do these two things: