mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Expand EnvironmentVariable in Command
This commit is contained in:
parent
7cfb71df35
commit
304fb90c5d
1 changed files with 2 additions and 6 deletions
|
|
@ -151,11 +151,7 @@ namespace Flow.Plugin.WindowsSettings.Helper
|
||||||
|
|
||||||
var command = entry.Command;
|
var command = entry.Command;
|
||||||
|
|
||||||
if (command.Contains("%windir%", StringComparison.InvariantCultureIgnoreCase))
|
command = Environment.ExpandEnvironmentVariables(command);
|
||||||
{
|
|
||||||
var windowsFolder = Environment.GetFolderPath(Environment.SpecialFolder.Windows);
|
|
||||||
command = command.Replace("%windir%", windowsFolder, StringComparison.InvariantCultureIgnoreCase);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (command.Contains(' '))
|
if (command.Contains(' '))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue