summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2017-08-11 12:12:59 -0400
committerNat Goodspeed <nat@lindenlab.com>2017-08-11 12:12:59 -0400
commit1fd2a3c24f424db7445db733f1f79d437d7a6f27 (patch)
tree5cff9a3f7b255ea31b0b2fbe292f9a83ee8cad92 /indra/newview/llappviewer.cpp
parente6e088d5ab3f477634c98474ad66e58e6f8dff41 (diff)
MAINT-7641: Warn user if s/he directly runs viewer without launcher.
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r--indra/newview/llappviewer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 5a0cdd4f1a..b39528544f 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -1101,6 +1101,14 @@ bool LLAppViewer::init()
}
}
+ 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.
+ LLNotificationsUtil::add("RunLauncher");
+ }
+
#if LL_WINDOWS
if (gGLManager.mGLVersion < LLFeatureManager::getInstance()->getExpectedGLVersion())
{