When I create my application via pyinstaller and the --onefile option, if I launch the application, it opens as expected. If I use the --onedir option, if I launch the application, it launches closed. It isn't minimized in the corner like other minimized apps, if you look at all open windows, it doesn't appear among the windows, but if you click on the app icon in the toolbar, the window appears.
FYI: The application is a simple TKinter window that launches a selenium script.