Skip to content

Commit

Permalink
fix startup #2928
Browse files Browse the repository at this point in the history
  • Loading branch information
bao-qian committed May 14, 2020
1 parent d075faa commit 54699ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Wox.Infrastructure/Constant.cs
Expand Up @@ -9,10 +9,11 @@ namespace Wox.Infrastructure
public static class Constant
{
public const string Wox = "Wox";
public static readonly string WoxExecutable = $"{Wox}.exe";
public const string Plugins = "Plugins";

private static Assembly Assembly = Assembly.GetExecutingAssembly();
public static string ExecutablePath = Assembly.Location.NonNull();
public static string ExecutablePath = Path.Combine(Path.GetDirectoryName(Assembly.Location), WoxExecutable);
public static string Version = FileVersionInfo.GetVersionInfo(ExecutablePath).ProductVersion;

public static string ProgramDirectory = Directory.GetParent(ExecutablePath).ToString();
Expand Down

0 comments on commit 54699ed

Please sign in to comment.