Work around a crash on startup on current versions of KDE on Linux.

https://bugs.kde.org/show_bug.cgi?id=401637
This commit is contained in:
Pierre-Loup A. Griffais 2019-08-15 23:09:57 -07:00 committed by Ivan
parent 56011cbddd
commit f342f4b826
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,8 @@ int main(int argc, char** argv)
rlim.rlim_max = 4096;
if (::setrlimit(RLIMIT_NOFILE, &rlim) != 0)
std::fprintf(stderr, "Failed to set max open file limit (4096).");
// Work around crash on startup on KDE: https://bugs.kde.org/show_bug.cgi?id=401637
setenv( "KDE_DEBUG", "1", 0 );
#endif
s_init.unlock();