From 07912c408a223a18475e767dcf04fea8f5f1e140 Mon Sep 17 00:00:00 2001 From: Luna Nova Date: Fri, 28 Oct 2022 20:22:07 -0700 Subject: [PATCH] lutris: set unshareIpc and unsharePid to false This copies a workaround required for steam, as the same issue occurs in lutris. See https://github.com/NixOS/nixpkgs/pull/109466 Fixes battle.net client crashing on startup and overwatch crashing. Fixes https://github.com/NixOS/nixpkgs/issues/195126 --- pkgs/applications/misc/lutris/fhsenv.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/applications/misc/lutris/fhsenv.nix b/pkgs/applications/misc/lutris/fhsenv.nix index 278d2c363bd..5c39576ac6f 100644 --- a/pkgs/applications/misc/lutris/fhsenv.nix +++ b/pkgs/applications/misc/lutris/fhsenv.nix @@ -126,6 +126,15 @@ in buildFHSUserEnv { ln -sf ${lutris-unwrapped}/share/icons $out/share ''; + # allows for some gui applications to share IPC + # this fixes certain issues where they don't render correctly + unshareIpc = false; + + # Some applications such as Natron need access to MIT-SHM or other + # shared memory mechanisms. Unsharing the pid namespace + # breaks the ability for application to reference shared memory. + unsharePid = false; + meta = { inherit (lutris-unwrapped.meta) homepage