Changing Default Profile Does Not Work #6371

Closed
opened 2026-01-31 00:36:54 +00:00 by claunia · 4 comments
Owner

Originally created by @tjquinn1 on GitHub (Feb 11, 2020).

Environment

Microsoft Windows NT 10.0.18363.0
Terminal Verison: 0.8.10261.0
WSL1 with Ubuntu 18.04.3 LTS

Steps to reproduce

I changed the default profile from power shell to Ubuntu in settings.json using the profiles guid.

Expected behavior

Ubuntu to be default profile.

Actual behavior

The Terminal makes Ubuntu the default profile but instead of loading Ubuntu it loads powershell in the Ubuntu shell. I tried reverting the default back to powershell but it will not revert back. So even though the powershell is again the default in settings.json, it has kept loading the Ubuntu hybrid as the default. If I open WSL through powershell that does work and Ubuntu seems to work as expected then.

terminalpic

Originally created by @tjquinn1 on GitHub (Feb 11, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 Microsoft Windows NT 10.0.18363.0 Terminal Verison: 0.8.10261.0 WSL1 with Ubuntu 18.04.3 LTS # Steps to reproduce I changed the default profile from power shell to Ubuntu in settings.json using the profiles guid. <!-- A description of how to trigger this bug. --> # Expected behavior Ubuntu to be default profile. # Actual behavior The Terminal makes Ubuntu the default profile but instead of loading Ubuntu it loads powershell in the Ubuntu shell. I tried reverting the default back to powershell but it will not revert back. So even though the powershell is again the default in settings.json, it has kept loading the Ubuntu hybrid as the default. If I open WSL through powershell that does work and Ubuntu seems to work as expected then. ![terminalpic](https://user-images.githubusercontent.com/16781171/74246044-25739980-4ca1-11ea-9107-9541bcaa3dcf.png)
Author
Owner

@zadjii-msft commented on GitHub (Feb 11, 2020):

@tjquinn1 Could you share your profiles.json file?

@zadjii-msft commented on GitHub (Feb 11, 2020): @tjquinn1 Could you share your `profiles.json` file?
Author
Owner

@tjquinn1 commented on GitHub (Feb 12, 2020):

@zadjii-msft Sure Here you go

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

    "defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",

    "profiles":
    [
        {
            // Make changes here to the powershell.exe profile
            "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
            "name": "Windows PowerShell",
            "commandline": "powershell.exe",
            "hidden": false
        },
        {
            // Make changes here to the cmd.exe profile
            "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
            "name": "cmd",
            "commandline": "cmd.exe",
            "hidden": false
        },
        {
            "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
            "hidden": false,
            "name": "Azure Cloud Shell",
            "source": "Windows.Terminal.Azure"
        },
        {
            "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
            "hidden": false,
            "name": "Ubuntu",
            "source": "Windows.Terminal.Wsl",
            "fontFace": "Ubuntu Mono derivative Powerline",
            "background": "#58b8ae",
            "selectionBackground": "#d25bd9"
        }
    ],

    // 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": []
}
@tjquinn1 commented on GitHub (Feb 12, 2020): @zadjii-msft Sure Here you go ``` { "$schema": "https://aka.ms/terminal-profiles-schema", "defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}", "profiles": [ { // Make changes here to the powershell.exe profile "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}", "name": "Windows PowerShell", "commandline": "powershell.exe", "hidden": false }, { // Make changes here to the cmd.exe profile "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "name": "cmd", "commandline": "cmd.exe", "hidden": false }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure" }, { "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}", "hidden": false, "name": "Ubuntu", "source": "Windows.Terminal.Wsl", "fontFace": "Ubuntu Mono derivative Powerline", "background": "#58b8ae", "selectionBackground": "#d25bd9" } ], // 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": [] } ```
Author
Owner

@tjquinn1 commented on GitHub (Feb 12, 2020):

I see the error. I accidentally over wrote the guid of powershell. I reverted back using the defaults and everything works as intended. My apologies for being a fool.

@tjquinn1 commented on GitHub (Feb 12, 2020): I see the error. I accidentally over wrote the guid of powershell. I reverted back using the defaults and everything works as intended. My apologies for being a fool.
Author
Owner

@zadjii-msft commented on GitHub (Feb 12, 2020):

@tjquinn1 thanks for following up!

@zadjii-msft commented on GitHub (Feb 12, 2020): @tjquinn1 thanks for following up!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6371