mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-23 23:11:13 -04:00
[exe] Use Environment.CurrentDirectory
instead of overriding fs
This commit is contained in:
parent
b91c526d2e
commit
fee8fd9320
3 changed files with 6 additions and 66 deletions
|
@ -21,6 +21,12 @@ namespace UptimeKuma {
|
|||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main(string[] args) {
|
||||
var cwd = Path.GetDirectoryName(Application.ExecutablePath);
|
||||
|
||||
if (cwd != null) {
|
||||
Environment.CurrentDirectory = cwd;
|
||||
}
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new UptimeKumaApplicationContext());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue