From 1663bf7b0f024c5f8ac1420cec8b60160bdae398 Mon Sep 17 00:00:00 2001 From: RKrom Date: Mon, 12 Nov 2012 15:34:15 +0000 Subject: [PATCH] Updated the readme.txt and a small readability change in the StartupHelper git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2270 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Helpers/StartupHelper.cs | 5 +++-- Greenshot/releases/additional_files/readme.txt | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Greenshot/Helpers/StartupHelper.cs b/Greenshot/Helpers/StartupHelper.cs index de53f9ede..b05fd1439 100644 --- a/Greenshot/Helpers/StartupHelper.cs +++ b/Greenshot/Helpers/StartupHelper.cs @@ -217,17 +217,18 @@ namespace Greenshot.Helpers { /// public static bool IsInStartupFolder() { try { + string lnkName = Path.GetFileNameWithoutExtension(Application.ExecutablePath) + ".lnk"; string startupPath = Environment.GetFolderPath(Environment.SpecialFolder.Startup); if (Directory.Exists(startupPath)) { LOG.DebugFormat("Startup path: {0}", startupPath); - if (File.Exists(Path.Combine(startupPath, Path.GetFileNameWithoutExtension(Application.ExecutablePath) + ".lnk"))) { + if (File.Exists(Path.Combine(startupPath, lnkName))) { return true; } } string startupAll = Environment.GetEnvironmentVariable("ALLUSERSPROFILE") + @"\Microsoft\Windows\Start Menu\Programs\Startup"; if (Directory.Exists(startupAll)) { LOG.DebugFormat("Startup all path: {0}", startupAll); - if (File.Exists(Path.Combine(startupAll, Path.GetFileNameWithoutExtension(Application.ExecutablePath) + ".lnk"))) { + if (File.Exists(Path.Combine(startupAll, lnkName))) { return true; } } diff --git a/Greenshot/releases/additional_files/readme.txt b/Greenshot/releases/additional_files/readme.txt index bc582432a..3dafce80c 100644 --- a/Greenshot/releases/additional_files/readme.txt +++ b/Greenshot/releases/additional_files/readme.txt @@ -14,6 +14,7 @@ Bugs resolved: * Bug #3572995: On Windows XP Firefox captures are mainly black, this fix does not only work for Firefox. * Bug #3585393: resize issues with some the plugin configuration dialogs. * Not reported: Flickr configuration for the Family, Friend & Public wasn't stored. +* Not reported: If Greenshot is linked in a Windows startup folder, the "Start with startup" checkbox wasn't checked. * Removed unneeded code from the Confluence Plug-in, this makes the Greenshot installer / .zip a bit smaller. Features: