fn started_by_login_task() -> bool
The Store package’s startup task starts the exe with no arguments, so a login start there is known from how Windows activated the process, not from --background. Nowhere else is it ever true.
--background