...as this is the logical place for them. @diapolo can you test whether this still builds on windows? I'm not sure what includes are needed for CoCreateInstance / GetModuleFileName.
Move GetStartOnSystemStartup and SetStartOnSystemStartup to GUI code #1178
pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:2012_05_move_startonsystemstartup changing 7 files +155 −154-
laanwj commented at 4:56 PM on May 1, 2012: member
-
Diapolo commented at 4:57 PM on May 1, 2012: none
Sure, will report back after I did the tests :).
-
in src/qt/guiutil.cpp:None in 037eb1f370 outdated
17 | @@ -17,6 +18,9 @@ 18 | #include <QDesktopServices> 19 | #include <QThread> 20 | 21 | +#include <boost/filesystem.hpp> 22 | +#include <boost/filesystem/fstream.hpp> 23 | +
Diapolo commented at 5:10 PM on May 1, 2012:This needs:
#ifdef WIN32 #include "shlwapi.h" #endif
in src/qt/guiutil.cpp:None in 037eb1f370 outdated
224 | + return MyGetSpecialFolderPath(CSIDL_STARTUP, true) / "Bitcoin.lnk"; 225 | +} 226 | + 227 | +bool GetStartOnSystemStartup() 228 | +{ 229 | + return filesystem::exists(StartupShortcutPath());
Diapolo commented at 5:10 PM on May 1, 2012:This needs to be:
return boost::filesystem::exists(StartupShortcutPath());
Diapolo commented at 5:12 PM on May 1, 2012: noneSeems like a good idea to move MyGetSpecialFolderPath function from util.cpp into guiutil.cpp, too, as I currently get: guiutil.cpp:229: Fehler:'MyGetSpecialFolderPath' was not declared in this scope.
Diapolo commented at 5:20 PM on May 1, 2012: noneIt seems that shlwapi.h can be removed from util.cpp after your changes.
laanwj commented at 5:20 PM on May 1, 2012: memberThanks for the fixes.
MyGetSpecialFolderPath cannot be moved as it's also used in GetDefaultDataDir, which should certainly stay in the core code.
On the other hand, if we can remove the fallbacks, we could simply use the windows API function SHGetSpecialFolderPathA directly in both places and get rid of MyGetSpecialFolderPath. For now, I'll simply add it to util.h.
laanwj commented at 5:26 PM on May 1, 2012: memberOk, updated.
laanwj commented at 7:11 AM on May 5, 2012: memberUpdated to _WIN32_IE 0x0501
laanwj commented at 10:29 AM on May 13, 2012: memberRebased
Move GetStartOnSystemStartup and SetStartOnSystemStartup to GUI code 67d4cbab46laanwj referenced this in commit b07ea7c74b on May 13, 2012laanwj merged this on May 13, 2012laanwj closed this on May 13, 2012coblee referenced this in commit daa5f657d0 on Jul 17, 2012laanwj deleted the branch on Apr 9, 2014suprnurd referenced this in commit c3e5757c25 on Dec 5, 2017lateminer referenced this in commit c33f97d0b6 on Jan 22, 2019lateminer referenced this in commit d7a929c6a8 on Dec 25, 2019Bushstar referenced this in commit 897f5edba1 on Oct 21, 2020DrahtBot locked this on Sep 8, 2021
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:16 UTC
More mirrored repositories can be found on mirror.b10c.me