2016-04-27 02:15:53 +01:00
|
|
|
|
using System;
|
2016-05-08 22:13:23 +01:00
|
|
|
|
using System.Diagnostics;
|
2016-04-27 02:15:53 +01:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Wox.Infrastructure
|
|
|
|
|
|
{
|
2016-05-18 19:38:43 +01:00
|
|
|
|
public static class Constant
|
2016-04-27 02:15:53 +01:00
|
|
|
|
{
|
2016-05-18 19:38:43 +01:00
|
|
|
|
public const string Wox = "Wox";
|
2016-05-04 02:26:19 +01:00
|
|
|
|
public const string Plugins = "Plugins";
|
2016-05-07 19:16:13 +01:00
|
|
|
|
|
2016-05-08 22:13:23 +01:00
|
|
|
|
private static readonly Assembly Assembly = Assembly.GetExecutingAssembly();
|
2016-05-18 19:38:43 +01:00
|
|
|
|
public static readonly string ProgramDirectory = Directory.GetParent(Assembly.Location).ToString();
|
|
|
|
|
|
public static readonly string ExecutablePath = Path.Combine(ProgramDirectory, Wox + ".exe");
|
|
|
|
|
|
public static readonly string DataDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Wox);
|
2016-06-22 00:42:24 +01:00
|
|
|
|
public static readonly string PluginsDirectory = Path.Combine(DataDirectory, Plugins);
|
2016-05-18 19:38:43 +01:00
|
|
|
|
public static readonly string PreinstalledDirectory = Path.Combine(ProgramDirectory, Plugins);
|
2016-05-07 22:44:38 +01:00
|
|
|
|
public const string Github = "https://github.com/Wox-launcher/Wox";
|
2016-05-20 21:16:25 +01:00
|
|
|
|
public const string Issue = "https://github.com/Wox-launcher/Wox/issues/new";
|
2016-05-08 22:13:23 +01:00
|
|
|
|
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location).ProductVersion;
|
2016-07-20 02:01:47 +01:00
|
|
|
|
|
2016-08-20 01:02:47 +01:00
|
|
|
|
public static readonly string DefaultIcon = Path.Combine(ProgramDirectory, "Images", "app.png");
|
|
|
|
|
|
public static readonly string ErrorIcon = Path.Combine(ProgramDirectory, "Images", "app_error.png");
|
|
|
|
|
|
|
2016-07-20 02:01:47 +01:00
|
|
|
|
public static string PythonPath;
|
|
|
|
|
|
public static string EverythingSDKPath;
|
2016-04-27 02:15:53 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|