Skip to content

Commit 3d636a9

Browse files
committed
fix "WinPython Terminal" Icon
as WT is defaulted to PowerShell per Microsoft, old way is broken
1 parent 89b1bd4 commit 3d636a9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

make.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -717,13 +717,12 @@ def _create_launchers(self):
717717
command="$SYSDIR\cmd.exe",
718718
args=r"/k cmd.bat",
719719
)
720-
# removed to reduce number of icons
721-
#self.create_launcher(
722-
# "WinPython Powershell Prompt.exe",
723-
# "powershell.ico",
724-
# command="$SYSDIR\cmd.exe",
725-
# args=r"/k cmd_ps.bat",
726-
#)
720+
self.create_launcher(
721+
"WinPython Powershell Prompt.exe",
722+
"powershell.ico",
723+
command="$SYSDIR\cmd.exe",
724+
args=r"/k cmd_ps.bat",
725+
)
727726

728727
self.create_launcher(
729728
"WinPython Terminal.exe",
@@ -1468,9 +1467,10 @@ def _create_batch_scripts(self):
14681467
self.create_batch_script(
14691468
"WinPython_Terminal.bat",
14701469
r"""@echo off
1471-
call "%~dp0env_for_icons.bat" %*
1472-
if not "%WINPYWORKDIR%"=="%WINPYWORKDIR1%" cd %WINPYWORKDIR1%
1473-
"%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\wt.exe"
1470+
rem call "%~dp0env_for_icons.bat" %*
1471+
rem if not "%WINPYWORKDIR%"=="%WINPYWORKDIR1%" cd %WINPYWORKDIR1%
1472+
rem "%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\wt.exe"
1473+
Powershell.exe -Command "& {Start-Process PowerShell.exe -ArgumentList '-ExecutionPolicy RemoteSigned -noexit -File ""%~dp0WinPython_PS_Prompt.ps1""'}"
14741474
exit
14751475
""",
14761476
)

0 commit comments

Comments
 (0)