Skip to content

[Bug] Standalone "Environment Variables" dialog (via Start Menu) is ignored #111

@sylque

Description

@sylque

Describe the bug
When opening the "Environment Variables" dialog directly from the Windows Start Menu, it spawns as a standalone window without a taskbar icon. In this specific state, AltAppSwitcher completely ignores it, making it impossible to Alt + Tab back to it.

Note: Opening Environment Variables as a child window via sysdm.cpl works perfectly fine. The bug only occurs when it is launched as a standalone dialog.

To Reproduce
Steps to reproduce the behavior:

  1. Open the Windows Start Menu.
  2. Type env.
  3. Select "Edit environment variables for your account".
  4. The "Environment Variables" window opens (notice it has no icon in the Windows taskbar).
  5. Click away to focus on a different application.
  6. Trigger AltAppSwitcher via Alt + Tab.
  7. Observe that the "Environment Variables" window is entirely missing from the switcher.

Expected behavior
AltAppSwitcher should enumerate and display this standalone dialog, matching the native Windows Alt + Tab behavior, which handles it correctly despite the lack of a taskbar icon.

Environment:

  • OS: Windows 11
  • AltAppSwitcher Version: 0.83

Additional context
When launched via the Start Menu, Windows executes rundll32.exe sysdm.cpl,EditEnvironmentVariables. This spawns a raw #32770 dialog class without a parent window and without the WS_EX_APPWINDOW style. AltAppSwitcher's window filtering logic is likely excluding it because it looks like a background or tool window to the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions