diff --git a/hosts/common/programs/swaynotificationcenter/default.nix b/hosts/common/programs/swaynotificationcenter/default.nix index 6fc46b16..51119af0 100644 --- a/hosts/common/programs/swaynotificationcenter/default.nix +++ b/hosts/common/programs/swaynotificationcenter/default.nix @@ -45,6 +45,12 @@ in "util-linux" ]; }; + sandbox.method = "bwrap"; + sandbox.whitelistDbus = [ "user" ]; + sandbox.extraConfig = [ + # `swaync-fbcli stop` needs to be able to find the corresponding `swaync-fbcli start` process + "--sanebox-keep-namespace" "pid" + ]; }; sane.programs.swaynotificationcenter = {