JaneaSystems / PowerToys-DevProjects

0 stars 0 forks source link

On project launch, minimized app first opens, waits, then minimizes as it should be #44

Open ethanfangg opened 3 months ago

ethanfangg commented 3 months ago

I have Spotify as a minimized app in my project.

When I launch the project, Spotify opens and appears visually on my page, then minimizes even though I already had Spotify active and minimized.

If an app is already minimized, leave it be rather than open it and there-minimize it?

cinnamon-msft commented 2 months ago

I'm hitting this in the latest build, except it isn't minimized after launching. It opens the minimized process even though I have it marked as minimized in the project.

donlaci commented 1 month ago

@plante-msft @SeraphimaZykova Some thoughts about the issue. I believe all apps which are marked as minimized in the project will be minimized at the end. Kayla's issue is solved, I believe. The current launch method is "always open new instances" so the original issue is not relevant anymore - if there is a minimized app, we will launch a new minimized instance from it.

So Ethan's issue theoretically could be taken as solved. Connor if you agree, you can (or I can) set the solved label to this issue.

There is one technical issue which I would like to bring up here. I believe there is no way for launching an app in minimized state. For packaged apps the official method to launch an app (the only one method) does not have any additional information, you can simply launch an app. For non-packaged apps the start process method has options to launch minimized but also in this case the system first activates the app (it appears on the screen) and then minimizes it. What I try to say that probably we will have to accept this minimal flickering when an app is launched minimized. We might find a solution later to overcome it, but for now I believe that that minimal flickering is inevitable.

plante-msft commented 1 month ago

@donlaci thanks for the heads up - I think the current state is totally reasonable for an MLP in PowerToys. Regular app launch also often shows the "two stages" to the user, where app launches first and the window repositions after, so if the same concept is happening for minimized apps, I think it'll make sense to power users.