diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2018-09-25 13:35:45 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2018-09-25 13:35:45 -0400 |
commit | ceb35372b545cd957f99577ad7076c7f3a65cb97 (patch) | |
tree | 4dfb08a586042d7d98eee4072ac70a1ede5760e2 /indra/newview/llappviewer.cpp | |
parent | b51972bac7f0b11955474baebebd3f1d7c9e60e3 (diff) | |
parent | cc376f86e8496e9e924fd596064c13ee6aa0133e (diff) |
Automated merge with https://bitbucket.org/oz_linden/viewer-release-cmake3.12
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r-- | indra/newview/llappviewer.cpp | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 687b76c224..c0fcdd7c79 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -1083,26 +1083,6 @@ bool LLAppViewer::init() } } -// don't nag developers who need to run the executable directly -#if LL_RELEASE_FOR_DOWNLOAD - // MAINT-8305: If we're processing a SLURL, skip the launcher check. - if (gSavedSettings.getString("CmdLineLoginLocation").empty()) - { - const char* PARENT = getenv("PARENT"); - if (! (PARENT && std::string(PARENT) == "SL_Launcher")) - { - // Don't directly run this executable. Please run the launcher, which - // will run the viewer itself. - // Naturally we do not consider this bulletproof. The point is to - // gently remind a user who *inadvertently* finds him/herself in this - // situation to do things the Right Way. Anyone who intentionally - // bypasses this mechanism needs no reminder that s/he's shooting - // him/herself in the foot. - LLNotificationsUtil::add("RunLauncher"); - } - } -#endif - #if LL_WINDOWS if (gGLManager.mGLVersion < LLFeatureManager::getInstance()->getExpectedGLVersion()) { @@ -1150,6 +1130,23 @@ bool LLAppViewer::init() gGLActive = FALSE; +#if LL_WINDOWS + std::vector<std::string> updater + { gDirUtilp->getExpandedFilename(LL_PATH_EXECUTABLE, "updater.exe") }; +#elif LL_DARWIN + // explicitly run the system Python interpreter on updater.py + std::vector<std::string> updater + { "python", gDirUtilp->add(gDirUtilp->getAppRODataDir(), "updater", "updater.py") }; +#else + std::vector<std::string> updater + { gDirUtilp->getExpandedFilename(LL_PATH_EXECUTABLE, "updater") }; +#endif + // add LEAP mode command-line argument to whichever of these we selected + updater.push_back("leap"); + + // Run the updater. An exception from the updater should bother us. + LLLeap::create("updater process", updater, true); + // Iterate over --leap command-line options. But this is a bit tricky: if // there's only one, it won't be an array at all. LLSD LeapCommand(gSavedSettings.getLLSD("LeapCommand")); |