From 51ec4b71c5e405fe3e2951d6431a5004bd81786a Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 2 Aug 2024 13:45:47 +0300 Subject: [PATCH] bash/usr-local-bin/briar: replace cpulimit with systemd-run --- bash/usr-local-bin/briar | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bash/usr-local-bin/briar b/bash/usr-local-bin/briar index cb638b8..a467617 100755 --- a/bash/usr-local-bin/briar +++ b/bash/usr-local-bin/briar @@ -1,4 +1,6 @@ #!/usr/bin/env bash set -x -cpulimit --lazy --include-children --limit=30 flatpak run org.briarproject.Briar//stable "$@" +# Fedora-only, Debian uses a different CPU limit implementation! +#cpulimit --lazy --include-children --limit=30 flatpak run org.briarproject.Briar//stable "$@" +systemd-run --scope -p CPUQuota="30%" --user flatpak run org.briarproject.Briar//stable "$@" set +x