src/core/Microsoft.PowerToys.Settings.UI.Lib/SettingsUtils.cs
/// <summary>
/// Get path to the json settings file.
/// </summary>
/// <returns>string path.</returns>
Get path to the json settings file.
Get path to the json settings file .
public static string GetSettingsPath(string powertoy, string fileName = DefaultFileName)
        {
            if (string.IsNullOrWhiteSpace(powertoy))
            {
                return Path.Combine(
                    LocalApplicationDataFolder(),
                    $"Microsoft\\PowerToys\\{fileName}");
            }
            return Path.Combine(
                LocalApplicationDataFolder(),
                $"Microsoft\\PowerToys\\{powertoy}\\{fileName}");
        }
public static string GetSettingsPath ( string powertoy , string fileName = DefaultFileName ) { if ( string . IsNullOrWhiteSpace ( powertoy ) ) { return Path . Combine ( LocalApplicationDataFolder ( ) , $" Microsoft \\ PowerToys \\ { fileName } " ) ; } return Path . Combine ( LocalApplicationDataFolder ( ) , $" Microsoft \\ PowerToys \\ { powertoy } \\ { fileName } " ) ; }
Get path to the json settings file.
Get path to the json settings file .
None
powertoy
string
fileName
string