profile should be distinguished considering with scheme not only commandLine #3395

Closed
opened 2026-01-30 23:20:22 +00:00 by claunia · 1 comment
Owner

Originally created by @hdformat on GitHub (Aug 13, 2019).

when i write two profiles which are having same commandLine pwsh.exe and different scheme each other. terminal shows two profile on its dropdown menu, but both shows only the first scheme.

    "profiles" :
    [
        {
            "acrylicOpacity" : 0.5,
            "closeOnExit" : true,
            "colorScheme" : "Night Owl",
            "commandline" : "C:\\Program Files\\PowerShell\\6\\pwsh.exe",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "D2Coding",
            "fontSize" : 10,
            "guid" : "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png",
            "name" : "PS Core",
            "padding" : "5, 5, 5, 5",
            "snapOnInput" : true,
            "startingDirectory" : "%USERPROFILE%",
            "useAcrylic" : false,
            "tabTitle": "PS Core"
        },
        {
            "acrylicOpacity" : 0.5,
            "closeOnExit" : true,
            "colorScheme" : "Fairy Floss",
            "commandline" : "C:\\Program Files\\PowerShell\\6\\pwsh.exe",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "D2Coding",
            "fontSize" : 10,
            "guid" : "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png",
            "name" : "PS Core",
            "padding" : "5, 5, 5, 5",
            "snapOnInput" : true,
            "startingDirectory" : "%USERPROFILE%",
            "useAcrylic" : false,
            "tabTitle": "PS Core"
        },

Proposed technical implementation details (optional)

profile should be distinguished considering with scheme not only commandLine

Originally created by @hdformat on GitHub (Aug 13, 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! --> when i write two profiles which are having same commandLine `pwsh.exe` and different scheme each other. terminal shows two profile on its dropdown menu, but both shows only the first scheme. ``` "profiles" : [ { "acrylicOpacity" : 0.5, "closeOnExit" : true, "colorScheme" : "Night Owl", "commandline" : "C:\\Program Files\\PowerShell\\6\\pwsh.exe", "cursorColor" : "#FFFFFF", "cursorShape" : "bar", "fontFace" : "D2Coding", "fontSize" : 10, "guid" : "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "historySize" : 9001, "icon" : "ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png", "name" : "PS Core", "padding" : "5, 5, 5, 5", "snapOnInput" : true, "startingDirectory" : "%USERPROFILE%", "useAcrylic" : false, "tabTitle": "PS Core" }, { "acrylicOpacity" : 0.5, "closeOnExit" : true, "colorScheme" : "Fairy Floss", "commandline" : "C:\\Program Files\\PowerShell\\6\\pwsh.exe", "cursorColor" : "#FFFFFF", "cursorShape" : "bar", "fontFace" : "D2Coding", "fontSize" : 10, "guid" : "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "historySize" : 9001, "icon" : "ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png", "name" : "PS Core", "padding" : "5, 5, 5, 5", "snapOnInput" : true, "startingDirectory" : "%USERPROFILE%", "useAcrylic" : false, "tabTitle": "PS Core" }, ``` <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) `profile` should be distinguished considering with `scheme` not only `commandLine` <!-- A clear and concise description of what you want to happen. -->
Author
Owner

@zadjii-msft commented on GitHub (Aug 13, 2019):

That's because both profiles have the same guid. You need to change the guid for the profiles to actually be treated as separate entities. That's the only property we examine to determine uniqueness.

@zadjii-msft commented on GitHub (Aug 13, 2019): That's because both profiles have the same `guid`. You need to change the `guid` for the profiles to actually be treated as separate entities. That's the only property we examine to determine uniqueness.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3395