depot/third_party/nixpkgs/pkgs/applications/misc/ArchiSteamFarm/mutable-customdir.patch

14 lines
642 B
Diff
Raw Normal View History

diff --git a/ArchiSteamFarm/IPC/ArchiKestrel.cs b/ArchiSteamFarm/IPC/ArchiKestrel.cs
index 371d305c..701eab3d 100644
--- a/ArchiSteamFarm/IPC/ArchiKestrel.cs
+++ b/ArchiSteamFarm/IPC/ArchiKestrel.cs
@@ -76,7 +76,7 @@ internal static class ArchiKestrel {
HostBuilder builder = new();
#endif
- string customDirectory = Path.Combine(Directory.GetCurrentDirectory(), SharedInfo.WebsiteDirectory);
+ string customDirectory = AppContext.BaseDirectory;
string websiteDirectory = Directory.Exists(customDirectory) ? customDirectory : Path.Combine(AppContext.BaseDirectory, SharedInfo.WebsiteDirectory);
// Set default content root