2016-05-08 21:13:23 +00:00
|
|
|
using System.Diagnostics;
|
2016-04-27 01:15:53 +00:00
|
|
|
using System.IO;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
2020-04-21 09:12:17 +00:00
|
|
|
namespace Flow.Launcher.Infrastructure
|
2016-04-27 01:15:53 +00:00
|
|
|
{
|
2016-05-18 18:38:43 +00:00
|
|
|
public static class Constant
|
2016-04-27 01:15:53 +00:00
|
|
|
{
|
2020-04-21 09:12:17 +00:00
|
|
|
public const string Flow.Launcher = "Flow.Launcher";
|
2020-02-25 10:08:51 +00:00
|
|
|
public const string Plugins = "Plugins";
|
|
|
|
|
|
2020-04-21 09:12:17 +00:00
|
|
|
public const string ApplicationFileName = Flow.Launcher + ".exe";
|
2020-04-08 08:51:35 +00:00
|
|
|
|
2020-02-25 10:08:51 +00:00
|
|
|
private static readonly Assembly Assembly = Assembly.GetExecutingAssembly();
|
|
|
|
|
public static readonly string ProgramDirectory = Directory.GetParent(Assembly.Location.NonNull()).ToString();
|
2020-04-21 09:12:17 +00:00
|
|
|
public static readonly string ExecutablePath = Path.Combine(ProgramDirectory, Flow.Launcher + ".exe");
|
2020-04-01 11:20:33 +00:00
|
|
|
public static readonly string ApplicationDirectory = Directory.GetParent(ProgramDirectory).ToString();
|
|
|
|
|
public static readonly string RootDirectory = Directory.GetParent(ApplicationDirectory).ToString();
|
|
|
|
|
|
2016-05-18 18:38:43 +00:00
|
|
|
public static readonly string PreinstalledDirectory = Path.Combine(ProgramDirectory, Plugins);
|
2020-04-21 09:12:17 +00:00
|
|
|
public const string Issue = "https://github.com/jjw24/Flow.Launcher/issues/new";
|
2017-04-01 11:54:05 +00:00
|
|
|
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location.NonNull()).ProductVersion;
|
2016-07-20 01:01:47 +00:00
|
|
|
|
2018-03-31 07:19:55 +00:00
|
|
|
public static readonly int ThumbnailSize = 64;
|
2016-08-20 00:02:47 +00: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 01:01:47 +00:00
|
|
|
public static string PythonPath;
|
|
|
|
|
public static string EverythingSDKPath;
|
2016-04-27 01:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|