From f9c486f78d6f746aa667570da6652ecabb0219f5 Mon Sep 17 00:00:00 2001 From: RKrom Date: Sun, 21 Apr 2013 18:19:32 +0000 Subject: [PATCH] Fixed compiling for .NET 2.0 git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2572 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Helpers/CaptureHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Greenshot/Helpers/CaptureHelper.cs b/Greenshot/Helpers/CaptureHelper.cs index 5e46147a5..3e6b91f82 100644 --- a/Greenshot/Helpers/CaptureHelper.cs +++ b/Greenshot/Helpers/CaptureHelper.cs @@ -609,7 +609,7 @@ namespace Greenshot.Helpers { // Added fallback for when the explorer can't be found if (errorMessage != null) { try { - string windowsPath = Environment.GetFolderPath(Environment.SpecialFolder.Windows); + string windowsPath = Environment.GetEnvironmentVariable("SYSTEMROOT"); string explorerPath = Path.Combine(windowsPath, "explorer.exe"); if (File.Exists(explorerPath)) { ProcessStartInfo psi = new ProcessStartInfo(explorerPath);