When opening containing folder for `*.lnk` that cannot be resolved to a file name, the folder containing the `.lnk` will be opened.
This commit is contained in:
Boris Makogonyuk 2015-12-13 20:58:51 +01:00
parent bb9684f7d3
commit dd65c173a9

View File

@ -224,7 +224,9 @@ namespace Wox.Plugin.Program
if (Path.EndsWith(".lnk"))
{
//get location of shortcut
Path = ResolveShortcut(Path);
var resolved = ResolveShortcut(Path);
if(!string.IsNullOrEmpty(resolved))
Path = resolved;
}
//get parent folder
Path = Directory.GetParent(Path).FullName;