terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Starting the Windows IoT Core ADK Add-ons IoTPShell script causes the resulting powershell windows outside of terminal

Open TGoodhew opened this issue 7 years ago • 4 comments

Environment

Microsoft Windows [Version 10.0.18362.388] Windows Terminal (Preview) Version: 0.5.2762.0 https://github.com/ms-iot/iot-adk-addonkit/

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

  1. Clone IoT Core ADK Add-ons to local machine
  2. Create IOT ADK entry in settings: { "guid": "{255BF760-7EE8-4346-B260-494BBBE234A6}", "name": "IOT ADK", "commandline": "C:\Users\Tony\source\repos\iot-adk-addonkit\IoTCorePShell.cmd", "hidden": false },
  3. Select "IOT ADK" from new window drop down
  4. Click yes on elevation prompt

Expected behavior

IoTPShell script/window opens as part of Terminal

Actual behavior

IoTPShell script/window opens a new PShell window on the desktop

TGoodhew avatar Oct 07 '19 17:10 TGoodhew

Try to copy the whole command from IoTCorePShell.cmd file and paste it in the commandline entry in the settings.json file.

Biswa96 avatar Oct 07 '19 17:10 Biswa96

The same result, the elevated PShell ends up outside of the terminal.

TGoodhew avatar Oct 07 '19 17:10 TGoodhew

To, it looks like IoTCorePShell.cmd is launching a separate elevated powershell instance. If you run Terminal elevated, it won't have to do that.

This is a combination of /dup #1032 and #492. 492 because if WT were the "default terminal", it wouldn't appear as a separate powershell window.

DHowett-MSFT avatar Oct 07 '19 22:10 DHowett-MSFT

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 avatar Oct 07 '19 22:10 ghost