Fix "startup wox on window start" issue.

This commit is contained in:
qianlifeng
2014-02-18 22:02:55 +08:00
parent fcdb9e39c6
commit b8fbc837dc
5 changed files with 22 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
using System.Windows;
@@ -149,7 +150,7 @@ namespace Wox
{
if (startup)
{
rk.SetValue("Wox", Path.Combine(Directory.GetCurrentDirectory(), "Wox.exe startHide"));
rk.SetValue("Wox", Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Wox.exe hidestart"));
}
else
{