Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.cpp
Show First 20 Lines • Show All 637 Lines • ▼ Show 20 Lines | static fs::path GetAutostartDir() { | ||||
return fs::path(); | return fs::path(); | ||||
} | } | ||||
static fs::path GetAutostartFilePath() { | static fs::path GetAutostartFilePath() { | ||||
std::string chain = gArgs.GetChainName(); | std::string chain = gArgs.GetChainName(); | ||||
if (chain == CBaseChainParams::MAIN) { | if (chain == CBaseChainParams::MAIN) { | ||||
return GetAutostartDir() / "bitcoin.desktop"; | return GetAutostartDir() / "bitcoin.desktop"; | ||||
} | } | ||||
return GetAutostartDir() / strprintf("bitcoin-%s.lnk", chain); | return GetAutostartDir() / strprintf("bitcoin-%s.desktop", chain); | ||||
} | } | ||||
bool GetStartOnSystemStartup() { | bool GetStartOnSystemStartup() { | ||||
fsbridge::ifstream optionFile(GetAutostartFilePath()); | fsbridge::ifstream optionFile(GetAutostartFilePath()); | ||||
if (!optionFile.good()) { | if (!optionFile.good()) { | ||||
return false; | return false; | ||||
} | } | ||||
// Scan through file for "Hidden=true": | // Scan through file for "Hidden=true": | ||||
▲ Show 20 Lines • Show All 338 Lines • Show Last 20 Lines |