We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cfb71d commit 304fb90Copy full SHA for 304fb90
Plugins/Flow.Launcher.Plugin.WindowsSettings/Helper/ResultHelper.cs
@@ -150,12 +150,8 @@ private static bool DoOpenSettingsAction(WindowsSetting entry)
150
ProcessStartInfo processStartInfo;
151
152
var command = entry.Command;
153
-
154
- if (command.Contains("%windir%", StringComparison.InvariantCultureIgnoreCase))
155
- {
156
- var windowsFolder = Environment.GetFolderPath(Environment.SpecialFolder.Windows);
157
- command = command.Replace("%windir%", windowsFolder, StringComparison.InvariantCultureIgnoreCase);
158
- }
+
+ command = Environment.ExpandEnvironmentVariables(command);
159
160
if (command.Contains(' '))
161
{
0 commit comments