This commit is contained in:
@@ -812,14 +812,13 @@ namespace AyaNova.Util
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
//only applies if there is a % in it
|
||||
//"A string containing the names of zero or more environment variables. Each environment variable is quoted with the percent sign character (%)."
|
||||
|
||||
if(!path.Contains('%')){
|
||||
return path;
|
||||
//Linux ~ home folder special handling here
|
||||
if (path.Contains('~'))
|
||||
{
|
||||
//return because no environment variables are expended on linux, this is the only special character
|
||||
return path.Replace("~", Environment.GetFolderPath(Environment.SpecialFolder.UserProfile));
|
||||
}
|
||||
|
||||
|
||||
return System.Environment.ExpandEnvironmentVariables(path);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user