microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
95.65k stars 8.32k forks source link

Allow a separate launch mode for when Terminal automatically starts on login #13630

Open DHowett opened 2 years ago

DHowett commented 2 years ago

Ported from MSFT-40653626

It would be nice if we could do these two things:

  1. Have a separate launch mode for when Terminal is started on login by our start on login setting.
  2. Once we have that, add support for launching minimized. This would let people specify that on startup, Terminal should launch minimized... but it should launch normally otherwise.
zadjii-msft commented 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.

Fulya2133 commented 2 years ago

Şuradan taşındı:MSFT-40653626

Şu iki şeyi yapabilsek ne güzel olurdu:

  1. 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.
  2. 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.
zadjii-msft commented 1 year ago

notes:

ExtendedActivationKind Enum

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:

zadjii-msft commented 5 months ago

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.