mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
Fix incorrect behavior with App Paths
This commit is contained in:
@@ -39,7 +39,11 @@ namespace Wox.Plugin.System
|
||||
{
|
||||
object path = key.GetValue("");
|
||||
if (path is string && global::System.IO.File.Exists((string)path))
|
||||
list.Add(CreateEntry((string)path));
|
||||
{
|
||||
var entry = CreateEntry((string)path);
|
||||
entry.ExecuteName = item;
|
||||
list.Add(entry);
|
||||
}
|
||||
|
||||
key.Close();
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Wox.Plugin.System
|
||||
switch (global::System.IO.Path.GetExtension(file).ToLower())
|
||||
{
|
||||
case ".exe":
|
||||
p.ExecuteName = global::System.IO.Path.GetFileNameWithoutExtension(file);
|
||||
p.ExecuteName = global::System.IO.Path.GetFileName(file);
|
||||
try
|
||||
{
|
||||
FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(file);
|
||||
|
||||
Reference in New Issue
Block a user