Skip to content

Windows 11 leave powershell prompt open. #40

@MarkBaggett

Description

@MarkBaggett

If srum-dump.exe BETA 3 is built with the following standard pyinstaller options:

pyinstaller --onefile --add-data "srum-dump.png;." --hide-console hide-early .\srum_dump.py

Then on Windows 11 (only) a terminal window is launched in the background and left up. This is the result of a known issue with Windows Terminal and the fact that Windows 11 makes it the default command console. This will be resolved when this issue is resolved:

microsoft/terminal#12464

You can build pyinstaller this way:

pyinstaller --onefile --add-data "srum-dump.png;." --windowed .\srum_dump.py

Only the GUI is displayed and no CLI arguments are shown. However, the command line arguments "srum-dump --help" are not visible. You can still pass command line arguments, but the help interface is suppressed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions