mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
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:
parent
101cb27070
commit
1663bf7b0f
2 changed files with 4 additions and 2 deletions
|
@ -217,17 +217,18 @@ namespace Greenshot.Helpers {
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static bool IsInStartupFolder() {
|
public static bool IsInStartupFolder() {
|
||||||
try {
|
try {
|
||||||
|
string lnkName = Path.GetFileNameWithoutExtension(Application.ExecutablePath) + ".lnk";
|
||||||
string startupPath = Environment.GetFolderPath(Environment.SpecialFolder.Startup);
|
string startupPath = Environment.GetFolderPath(Environment.SpecialFolder.Startup);
|
||||||
if (Directory.Exists(startupPath)) {
|
if (Directory.Exists(startupPath)) {
|
||||||
LOG.DebugFormat("Startup path: {0}", 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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
string startupAll = Environment.GetEnvironmentVariable("ALLUSERSPROFILE") + @"\Microsoft\Windows\Start Menu\Programs\Startup";
|
string startupAll = Environment.GetEnvironmentVariable("ALLUSERSPROFILE") + @"\Microsoft\Windows\Start Menu\Programs\Startup";
|
||||||
if (Directory.Exists(startupAll)) {
|
if (Directory.Exists(startupAll)) {
|
||||||
LOG.DebugFormat("Startup all path: {0}", 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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 #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.
|
* Bug #3585393: resize issues with some the plugin configuration dialogs.
|
||||||
* Not reported: Flickr configuration for the Family, Friend & Public wasn't stored.
|
* 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.
|
* Removed unneeded code from the Confluence Plug-in, this makes the Greenshot installer / .zip a bit smaller.
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue