2021-02-09 14:11:51 +03:00
|
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
|
|
|
|
using System.Diagnostics;
|
2024-10-17 05:14:57 -04:00
|
|
|
|
|
2024-08-15 17:29:25 +02:00
|
|
|
|
using Common.UI;
|
2021-02-09 14:11:51 +03:00
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Helpers
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class StartProcessHelper
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string ColorsSettings = "ms-settings:colors";
|
2024-10-24 22:04:32 +02:00
|
|
|
|
public const string DiagnosticsAndFeedback = "ms-settings:privacy-feedback";
|
2021-02-09 14:11:51 +03:00
|
|
|
|
|
2024-08-15 17:29:25 +02:00
|
|
|
|
public static string AnimationsSettings => OSVersionHelper.IsWindows11()
|
|
|
|
|
|
? "ms-settings:easeofaccess-visualeffects"
|
|
|
|
|
|
: "ms-settings:easeofaccess-display";
|
|
|
|
|
|
|
2021-02-09 14:11:51 +03:00
|
|
|
|
public static void Start(string process)
|
|
|
|
|
|
{
|
|
|
|
|
|
Process.Start(new ProcessStartInfo(process) { UseShellExecute = true });
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|