diff --git a/src/MMT.Core/ProfileManager.cs b/src/MMT.Core/ProfileManager.cs index ca06216..682924e 100644 --- a/src/MMT.Core/ProfileManager.cs +++ b/src/MMT.Core/ProfileManager.cs @@ -47,6 +47,7 @@ public void Save(string profileName) Directory.CreateDirectory(Path.Combine(_customProfilesPath, profileName)); Directory.CreateDirectory(Path.Combine(_customProfilesPath, profileName, "Desktop")); + Directory.CreateDirectory(Path.Combine(_customProfilesPath, profileName, "Downloads")); } public void Delete(string profileName) diff --git a/src/MMT.Core/TeamsLauncher.cs b/src/MMT.Core/TeamsLauncher.cs index 9e11a9f..78e71a2 100644 --- a/src/MMT.Core/TeamsLauncher.cs +++ b/src/MMT.Core/TeamsLauncher.cs @@ -13,6 +13,9 @@ public void Start(string profileName) string oldUserProfile = StaticResources.UserProfile; string userProfile = Path.Combine(StaticResources.LocalAppData, StaticResources.CustomProfiles, profileName); + Directory.CreateDirectory(userProfile); + Directory.CreateDirectory(Path.Combine(userProfile, "Desktop")); + Directory.CreateDirectory(Path.Combine(userProfile, "Downloads")); Environment.SetEnvironmentVariable("USERPROFILE", userProfile); string updateExePath = Path.Combine(oldUserProfile, StaticResources.UpdateExe);