diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp index 37d39aebe22f3..fb2fa767e7eaf 100644 --- a/toolkit/xre/nsAppRunner.cpp +++ b/toolkit/xre/nsAppRunner.cpp @@ -4801,7 +4801,9 @@ int XREMain::XRE_main(int argc, char* argv[], const BootstrapConfig& aConfig) { mozilla::LogModule::Init(gArgc, gArgv); +#ifndef XP_LINUX NS_SetCurrentThreadName("MainThread"); +#endif AUTO_BASE_PROFILER_LABEL("XREMain::XRE_main (around Gecko Profiler)", OTHER); AUTO_PROFILER_INIT;