Skip to content

Workspaces CLI options don't expand environment variables #36662

Open
@ABillBlakely

Description

Microsoft PowerToys version

0.87.1

Installation method

PowerToys auto-update

Running as admin

No

Area(s) with issue?

Workspaces

Steps to reproduce

  1. Save a workspaces layout with explorer
  2. Edit CLI options to add %windir% or any other environment variable.
  3. Launch workspace.

✔️ Expected Behavior

It is expected to open explorer to the folder the environment variable leads to.

❌ Actual Behavior

Explorer opens to default folder.

If the environment variable is replaced with the full path C:\windows it does open to the correct path.

Using power shell style $env:windir also does not work.

Other Software

Windows 10 Pro 22H2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't workingNeeds-TriageFor issues raised to be triaged and prioritized by internal Microsoft teamsProduct-WorkspacesRefers to the Workspaces utility

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions