terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Windows Terminal doesn't start from folder right-click menu

Open gyorokpeter opened this issue 3 years ago • 10 comments

Windows Terminal version

1.15.2875.0

Windows build number

10.0.22621.819

Other Software

N/A

Steps to reproduce

After installing Windows Terminal, right click in any folder in Windows Explorer and choose "Open in Terminal".

Expected Behavior

Terminal should start up.

Actual Behavior

Nothing happens. However Terminal works if started by other means, such as by running it from the start menu, so the problem must be in the context menu launch method.

gyorokpeter avatar Nov 10 '22 23:11 gyorokpeter

We might need a feedback hub trace on this, so we can get the context menu folks to take a look. I don't recall off the top of my head what the area path for the shell context menu is. The bot will tell you to file this under the "Terminal" path, but you should look for a context menu path instead. (alas, feedback hub is busted on my machine ATM, so I can't figure that out for you).

/feedback

zadjii-msft avatar Nov 11 '22 15:11 zadjii-msft

Hi there!

Can you please send us feedback with the Feedback Hub with this issue? Make sure to click the "Start recording" button, then reproduce the issue before submitting the feedback. Once it's submitted, paste the link here so we can more easily find your crash information on the back end?

Thanks!

image

image

image

ghost avatar Nov 11 '22 15:11 ghost

https://aka.ms/AAippyc

gyorokpeter avatar Nov 12 '22 08:11 gyorokpeter

Hmm. Could you try doing this?

  1. Open Windows Terminal
  2. Open the drop down menu
  3. shift+click a profile

Does a terminal launch in a new window? This may help us diagnose what specifically is failing.

carlos-zamora avatar Dec 07 '22 22:12 carlos-zamora

That opens a folder in Windows Explorer with the name %LOCALAPPDATA%\Microsoft\WindowsApps\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\wt.exe . It's a folder but it's named like an executable file.

gyorokpeter avatar Dec 07 '22 22:12 gyorokpeter

Awesome. Could you run this command: fsutil reparsepoint query %LOCALAPPDATA%\Microsoft\WindowsApps\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\wt.exe

It looks like your app execution alias might be broken (as you've probably guessed).

carlos-zamora avatar Dec 07 '22 23:12 carlos-zamora

It says "Error: The file or directory is not a reparse point" (in Hungarian).

gyorokpeter avatar Dec 08 '22 07:12 gyorokpeter

Well that's entirely unexpected! I honestly have no idea how that would happen. You might want to back up your settings.json file file (and possibly state.json in that folder too), delete the bad "wt.exe" folder, and reinstall the Terminal. I have no idea how that would get created as a folder instead of as the app execution alias / reparse point...

zadjii-msft avatar Dec 08 '22 12:12 zadjii-msft

I managed to recreate the symlinks. Now the shift-click method works in a terminal window, but the right-click menu in a folder still doesn't.

gyorokpeter avatar Dec 08 '22 20:12 gyorokpeter

Sorry for the delay, finally coming back to this. It looks like #14637 has presented a potential solution. We would just need some time to implement a similar thing for the shell extension.

carlos-zamora avatar Jan 25 '23 22:01 carlos-zamora