mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +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("");
|
object path = key.GetValue("");
|
||||||
if (path is string && global::System.IO.File.Exists((string)path))
|
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();
|
key.Close();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ namespace Wox.Plugin.System
|
|||||||
switch (global::System.IO.Path.GetExtension(file).ToLower())
|
switch (global::System.IO.Path.GetExtension(file).ToLower())
|
||||||
{
|
{
|
||||||
case ".exe":
|
case ".exe":
|
||||||
p.ExecuteName = global::System.IO.Path.GetFileNameWithoutExtension(file);
|
p.ExecuteName = global::System.IO.Path.GetFileName(file);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(file);
|
FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(file);
|
||||||
|
|||||||
Reference in New Issue
Block a user