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
This commit is contained in:
RKrom 2012-11-12 15:34:15 +00:00
commit 1663bf7b0f
2 changed files with 4 additions and 2 deletions

View file

@ -217,17 +217,18 @@ namespace Greenshot.Helpers {
/// <returns></returns>
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;
}
}

View file

@ -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: