mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
main: Raise the NOFILE limit if a Wayland compositor
When being run as a Wayland compositor, raise the NOFILE limit to mitigate the risk of running out of file descriptors. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2117>
This commit is contained in:
parent
9862ee9b25
commit
5b8a32ca71
1 changed files with 3 additions and 0 deletions
|
|
@ -554,6 +554,9 @@ main (int argc, char **argv)
|
|||
|
||||
shell_profiler_init ();
|
||||
|
||||
if (meta_context_get_compositor_type (context) == META_COMPOSITOR_TYPE_WAYLAND)
|
||||
meta_context_raise_rlimit_nofile (context, NULL);
|
||||
|
||||
if (!meta_context_start (context, &error))
|
||||
{
|
||||
g_printerr ("GNOME Shell failed to start: %s", error->message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue