nixpkgs/pkgs/applications/misc/ArchiSteamFarm/mutable-customdir.patch
legendofmiracles 9a65a60a20
ArchiSteamFarm: 4.3.1.0 -> 5.1.5.3, use buildDotnetModule (#145542)
* ArchiSteamFarm: 4.3.1.0 -> 5.1.5.3, use buildDotnetModule

* ArchiSteamFarm: fix suggestions

Co-authored-by: IvarWithoutBones <ivar.scholten@protonmail.com>
2021-11-14 22:19:26 +01:00

14 lines
642 B
Diff

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