1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

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

View File

@ -118,6 +118,8 @@ int main(int argc, char** argv)
rlim.rlim_max = 4096; rlim.rlim_max = 4096;
if (::setrlimit(RLIMIT_NOFILE, &rlim) != 0) if (::setrlimit(RLIMIT_NOFILE, &rlim) != 0)
std::fprintf(stderr, "Failed to set max open file limit (4096)."); 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 #endif
s_init.unlock(); s_init.unlock();