Skip to content

WSL does not get focus when launching from taskbar #3443

@mariusstrom

Description

@mariusstrom

Please fill out the below information:

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    17134

  • What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)
    If an instance of WSL is running, to run another copy: right-click on the running instance in Taskbar, and select the instance name (i.e., Ubuntu).

  • What's wrong / what should be happening instead:
    In all other apps (including cmd.exe), the new instance immediately takes focus. With WSL, explorer.exe retains focus and requires either alt-tab to the WSL window or clicking in the WSL window.

  • Strace of the failing command, if applicable: (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here).
    N/A

  • For WSL launch issues, please collect detailed logs.
    Don't imagine logs are needed as I've repro'd this easily on builds from 16299 all the way through 17134.

See our contributing instructions for assistance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions