mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 12:09:18 +08:00
646b7a3118
1. fix #627 2. fix #646 3. remove exceptionless
26 lines
1.3 KiB
C#
26 lines
1.3 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
|
|
namespace Wox.Infrastructure
|
|
{
|
|
public static class Constant
|
|
{
|
|
public const string Wox = "Wox";
|
|
public const string Plugins = "Plugins";
|
|
public const string Settings = "Settings";
|
|
|
|
private static readonly Assembly Assembly = Assembly.GetExecutingAssembly();
|
|
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);
|
|
public static readonly string UserDirectory = Path.Combine(DataDirectory, Plugins);
|
|
public static readonly string PreinstalledDirectory = Path.Combine(ProgramDirectory, Plugins);
|
|
public static readonly string SettingsPath = Path.Combine(DataDirectory, Settings);
|
|
public const string Github = "https://github.com/Wox-launcher/Wox";
|
|
public const string Issue = "https://github.com/Wox-launcher/Wox/issues/new";
|
|
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location).ProductVersion;
|
|
}
|
|
}
|