Powershell: Preferences not retained when launched from Explorer Dialogue

Created on 18 Sep 2019  路  3Comments  路  Source: PowerShell/PowerShell

I've changed some of the Properties on PowerShell 7.0.0-preview.3, such as the font, and colouring of the window. When the application is launched via the shortcut then these preferences are retained for each launch.

If, however, I launched the application by right clicking in File Explorer and selecting Powershell 7-preview > Open here the preferences from the other window aren't loaded. Interestingly, however, if I change the properties in that window, and then use the dialogue options again, then the settings (of the window i just changed) are loaded. The preferences of the shortcut to the aopplication aren't affected.

It appears that the settings are saved in different locations depending on if the application is launched from a shortcut to C:\Program Files\PowerShell\7-preview\pwsh (or running the executable from the directory), or using the Windows Explorer Dialogue.

Issue-Question Resolution-Answered

Most helpful comment

This is more of a Windows issue in how it handles console defaults and customization, I feel? 馃

All 3 comments

This is more of a Windows issue in how it handles console defaults and customization, I feel? 馃

Yeah, that's how all console apps work. There's a config in the registry for every exe, and a separate config for any shortcut you make for it. Nothing PowerShell can do about it 馃槙

I've taken to not launching via a shortcut (instead with Win + R/an app launcher program/explorer), a bit more consistent that way imo.

Yeah, that's how all console apps work. There's a config in the registry for every exe, and a separate config for any shortcut you make for it. Nothing PowerShell can do about it 馃槙

You're right; this isn't an issue I have with an application like Putty as it saves it's preferences elsewhere. Does seem to be a Windows "feature". 馃槥

Will close this then. Thanks.

Was this page helpful?
0 / 5 - 0 ratings