diff --git a/ArchiSteamFarm/IPC/ArchiKestrel.cs b/ArchiSteamFarm/IPC/ArchiKestrel.cs index a2c8c664f..ee170f33d 100644 --- a/ArchiSteamFarm/IPC/ArchiKestrel.cs +++ b/ArchiSteamFarm/IPC/ArchiKestrel.cs @@ -435,12 +435,15 @@ internal static class ArchiKestrel { } private static async Task CreateWebApplication() { + // Try to initialize to custom www folder first string? webRootPath = Path.Combine(Directory.GetCurrentDirectory(), SharedInfo.WebsiteDirectory); if (!Directory.Exists(webRootPath)) { + // Try to initialize to standard www folder next webRootPath = Path.Combine(AppContext.BaseDirectory, SharedInfo.WebsiteDirectory); if (!Directory.Exists(webRootPath)) { + // Do not attempt to create a new directory, user has explicitly removed it webRootPath = null; } }