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
|
|
@ -150,12 +150,8 @@ namespace Flow.Plugin.WindowsSettings.Helper
|
|||
ProcessStartInfo processStartInfo;
|
||||
|
||||
var command = entry.Command;
|
||||
|
||||
if (command.Contains("%windir%", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
var windowsFolder = Environment.GetFolderPath(Environment.SpecialFolder.Windows);
|
||||
command = command.Replace("%windir%", windowsFolder, StringComparison.InvariantCultureIgnoreCase);
|
||||
}
|
||||
|
||||
command = Environment.ExpandEnvironmentVariables(command);
|
||||
|
||||
if (command.Contains(' '))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue