mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix incorrect behavior with App Paths
This commit is contained in:
parent
8b153121ac
commit
6c17107f39
2 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue