Bug Report: defaultProfile in profiles.json is ignored #4040

Open
opened 2026-01-30 23:36:37 +00:00 by claunia · 0 comments
Owner

Originally created by @mauve on GitHub (Sep 25, 2019).

Environment

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18980.0 Microsoft Windows NT 10.0.18980.0


Windows Terminal (Preview)
Version: 0.5.2661.0

Steps to reproduce

  1. Open profiles.json (e.g. via Ctrl+,)
  2. Change "defaultProfiles" to the GUID of something which is not Windows Powershell for example the much more reasonable Powershell Core
  3. Windows Powershell is still the default

(extra: If the Windows Powershell is hidden then the "Cannot find default profile warning is shown")

Expected behavior

Uses the specified profile as the default profile.

Actual behavior

Keeps using the default profile specified in the defaults.json

My profile.json:

// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation

{
  "$schema": "https://aka.ms/terminal-profiles-schema",

  "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",

  "profiles": [
    {
      "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
      "hidden": false,
      "name": "PowerShell Core",
      "source": "Windows.Terminal.PowershellCore",
      "fontFace": "Fira Code",
      "fontSize": 10
    },
    {
      // Make changes here to the powershell.exe profile
      "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
      "name": "Windows PowerShell",
      "commandline": "powershell.exe",
      "hidden": false,
      "fontFace": "Fira Code"
    },
    {
      // Make changes here to the cmd.exe profile
      "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
      "name": "cmd",
      "commandline": "cmd.exe",
      "hidden": false,
      "fontFace": "Fira Code"
    },

    {
      "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
      "hidden": false,
      "name": "Azure Cloud Shell",
      "source": "Windows.Terminal.Azure",
      "fontFace": "Fira Code"
    }
  ],

  // Add custom color schemes to this array
  "schemes": [],

  // Add any keybinding overrides to this array.
  // To unbind a default keybinding, set the command to "unbound"
  "keybindings": [],

  "globals": {
    "requestedTheme": "system",
    "copyOnSelect": true
  }
}

Originally created by @mauve on GitHub (Sep 25, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ``` Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18980.0 Microsoft Windows NT 10.0.18980.0 Windows Terminal (Preview) Version: 0.5.2661.0 ``` # Steps to reproduce 1. Open `profiles.json` (e.g. via Ctrl+,) 2. Change `"defaultProfiles"` to the GUID of something which is not `Windows Powershell` for example the much more reasonable `Powershell Core` 3. `Windows Powershell` is still the default (extra: If the `Windows Powershell` is hidden then the "Cannot find default profile warning is shown") # Expected behavior Uses the specified profile as the default profile. # Actual behavior Keeps using the default profile specified in the defaults.json ## My `profile.json`: ``` // To view the default settings, hold "alt" while clicking on the "Settings" button. // For documentation on these settings, see: https://aka.ms/terminal-documentation { "$schema": "https://aka.ms/terminal-profiles-schema", "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "profiles": [ { "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "hidden": false, "name": "PowerShell Core", "source": "Windows.Terminal.PowershellCore", "fontFace": "Fira Code", "fontSize": 10 }, { // Make changes here to the powershell.exe profile "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "name": "Windows PowerShell", "commandline": "powershell.exe", "hidden": false, "fontFace": "Fira Code" }, { // Make changes here to the cmd.exe profile "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "name": "cmd", "commandline": "cmd.exe", "hidden": false, "fontFace": "Fira Code" }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure", "fontFace": "Fira Code" } ], // Add custom color schemes to this array "schemes": [], // Add any keybinding overrides to this array. // To unbind a default keybinding, set the command to "unbound" "keybindings": [], "globals": { "requestedTheme": "system", "copyOnSelect": true } } ```
claunia added the Area-SettingsResolution-DuplicateProduct-Terminal labels 2026-01-30 23:36:37 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4040