Skip to content

Commit

Permalink
Hide cmd window for mintty when setting cyg_path. (talonhub#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
ira-peach authored and rokubop committed Nov 6, 2023
1 parent 2059a62 commit 1e004e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/mintty/mintty_win.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@
def get_win_path(cyg_path):
path = ""
try:
si = subprocess.STARTUPINFO()
si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
path = (
subprocess.check_output([setting_cyg_path.get(), "-w", cyg_path])
subprocess.check_output(
[setting_cyg_path.get(), "-w", cyg_path], startupinfo=si
)
.strip(b"\n")
.decode()
)
Expand Down

0 comments on commit 1e004e2

Please sign in to comment.