diff --git a/Wox.Plugin.System/AppPathsProgramSource.cs b/Wox.Plugin.System/AppPathsProgramSource.cs index 93bc6420b0..6b645c9720 100644 --- a/Wox.Plugin.System/AppPathsProgramSource.cs +++ b/Wox.Plugin.System/AppPathsProgramSource.cs @@ -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(); } diff --git a/Wox.Plugin.System/IProgramSource.cs b/Wox.Plugin.System/IProgramSource.cs index 837b854f88..4373bdf66d 100644 --- a/Wox.Plugin.System/IProgramSource.cs +++ b/Wox.Plugin.System/IProgramSource.cs @@ -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);