Skip to content

Add 'Open install folder in Terminal' to installed apps - #27

Merged
aclinick merged 1 commit into
mainfrom
feature/open-install-folder-in-terminal
Jul 17, 2026
Merged

Add 'Open install folder in Terminal' to installed apps#27
aclinick merged 1 commit into
mainfrom
feature/open-install-folder-in-terminal

Conversation

@aclinick

Copy link
Copy Markdown
Owner

Right-clicking an app in the Apps pane now offers Open install folder in Terminal, opening that package's install location in a terminal so users can see what's inside.

How

  • New Core service TerminalLauncher.GetLaunchOptions(folder) returns an ordered list of launch candidates: Windows Terminal (wt.exe -d) -> PowerShell (-NoExit) -> cmd.exe. The UI tries each until one starts, so machines without Windows Terminal still get a shell.
  • TerminalLaunchOption record carries FileName / Arguments / WorkingDirectory; the UI maps it to ProcessStartInfo { UseShellExecute = true } (allowed via existing runFullTrust).
  • Right-click ContextFlyout added to the installed-apps ListView item template.

Testing

  • 7 new TerminalLauncherTests (ordering, quoting, working-directory, trailing-separator, blank-path). Full suite: 156/156 pass.
  • Manually verified in the running app.

Right-clicking an app in the Apps pane now offers 'Open install folder

in Terminal', which opens that package's install location in a terminal

so users can inspect what's inside.

TerminalLauncher (Core, testable) returns an ordered list of launch

candidates: Windows Terminal (wt.exe -d), then PowerShell, then cmd.exe.

The UI tries each until one starts, so machines without Windows Terminal

still fall back to a shell that always ships with Windows. Launch uses

ProcessStartInfo with UseShellExecute=true (allowed via runFullTrust).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aclinick
aclinick enabled auto-merge (squash) July 17, 2026 17:42
@aclinick
aclinick merged commit d171744 into main Jul 17, 2026
2 checks passed
@aclinick
aclinick deleted the feature/open-install-folder-in-terminal branch July 17, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant