Terminal Preview suddenly not working when there are spaces in executables path #19014

Closed
opened 2026-01-31 06:31:11 +00:00 by claunia · 5 comments
Owner

Originally created by @alex-sandro92 on GitHub (Dec 5, 2022).

Windows Terminal version

1.16.2642.0

Windows build number

25252.1010

Other Software

No response

Steps to reproduce

Open a profile whose executable contains spaces in its path.
I was not having this issue until yesterday, when I installed latest Windows cumulative update (10.0.25252.1010).

Expected Behavior

I expect to open a profile and launch its command line.

Actual Behavior

I get the following error if the executable contains spaces in its path (PS7 is just an example):

[error 2147942593 (0x800700c1) when launching D:\Program Files\PowerShell\7\pwsh.exe']`

If the executable has no spaces in its path the command line starts correctly.

Originally created by @alex-sandro92 on GitHub (Dec 5, 2022). ### Windows Terminal version 1.16.2642.0 ### Windows build number 25252.1010 ### Other Software _No response_ ### Steps to reproduce Open a profile whose executable contains spaces in its path. I was not having this issue until yesterday, when I installed latest Windows cumulative update (10.0.25252.1010). ### Expected Behavior I expect to open a profile and launch its command line. ### Actual Behavior I get the following error if the executable contains spaces in its path (PS7 is just an example): `[error 2147942593 (0x800700c1) when launching `D:\Program Files\PowerShell\7\pwsh.exe']` If the executable has no spaces in its path the command line starts correctly.
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 06:31:11 +00:00
Author
Owner

@DHowett commented on GitHub (Dec 5, 2022):

Thanks for the report! Can you share your settings.json file?

@DHowett commented on GitHub (Dec 5, 2022): Thanks for the report! Can you share your `settings.json` file?
Author
Owner

@alex-sandro92 commented on GitHub (Dec 7, 2022):

Thanks for the report! Can you share your settings.json file?

settings.zip

Profiles affected are the ones with spaces in the executable path:

  1. Powershel 7.3.0 (stable and preview)
  2. Git
  3. Adb (which uses PS7)
  4. Steamcmd
@alex-sandro92 commented on GitHub (Dec 7, 2022): > Thanks for the report! Can you share your `settings.json` file? [settings.zip](https://github.com/microsoft/terminal/files/10175133/settings.zip) Profiles affected are the ones with spaces in the executable path: 1. Powershel 7.3.0 (stable and preview) 2. Git 3. Adb (which uses PS7) 4. Steamcmd
Author
Owner

@carlos-zamora commented on GitHub (Dec 7, 2022):

Hi @alex-sandro92. Do you have a file D:\Program?

We've hit a few of these in the past, so I'm dupping this: /dup #11717

@carlos-zamora commented on GitHub (Dec 7, 2022): Hi @alex-sandro92. Do you have a file `D:\Program`? We've hit a few of these in the past, so I'm dupping this: /dup #11717
Author
Owner

@ghost commented on GitHub (Dec 7, 2022):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Dec 7, 2022): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@alex-sandro92 commented on GitHub (Dec 8, 2022):

Hi @alex-sandro92. Do you have a file D:\Program?

We've hit a few of these in the past, so I'm dupping this: /dup #11717

That was the problem, thanks!
That file was created by a monitoring software for my ups

@alex-sandro92 commented on GitHub (Dec 8, 2022): > Hi @alex-sandro92. Do you have a file `D:\Program`? > > We've hit a few of these in the past, so I'm dupping this: /dup #11717 That was the problem, thanks! That file was created by a monitoring software for my ups
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19014