Skip to content

Commit fe34d08

Browse files
committed
OneDrive now uses the environment variable path
1 parent feeb3e1 commit fe34d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Files/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ sealed partial class App : Application
3737
public static string DesktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
3838
public static string DocumentsPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
3939
public static string DownloadsPath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + @"\Downloads";
40-
public static string OneDrivePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + @"\OneDrive";
40+
public static string OneDrivePath = Environment.GetEnvironmentVariable("OneDrive");
4141
public static string PicturesPath = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
4242
public static string MusicPath = Environment.GetFolderPath(Environment.SpecialFolder.MyMusic);
4343
public static string VideosPath = Environment.GetFolderPath(Environment.SpecialFolder.MyVideos);

0 commit comments

Comments
 (0)