summarylogtreecommitdiffstats
path: root/pleasenote.install
diff options
context:
space:
mode:
authorJaja2022-04-10 18:41:46 +0200
committerJaja2022-04-10 18:41:46 +0200
commit8f4d4c06abc4e3d981a0a070e017ce9a56f9b5e9 (patch)
treef0e5e41c31a93bd000f4788637ac1bf27a3ad5a7 /pleasenote.install
parent08c696a27217669c47bfe480c24016ff8b6163b6 (diff)
downloadaur-8f4d4c06abc4e3d981a0a070e017ce9a56f9b5e9.tar.gz
option to allow niceness to be set by wine
also libusb is optional in some builds, sometimes not. So i changed it again...
Diffstat (limited to 'pleasenote.install')
-rw-r--r--pleasenote.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/pleasenote.install b/pleasenote.install
new file mode 100644
index 000000000000..fe826051a742
--- /dev/null
+++ b/pleasenote.install
@@ -0,0 +1,13 @@
+post_install() {
+ ## Wine wants to adjust niceness of a process up to -10. It will complain if RLIMIT_NICE will not allow this.
+ ## Since niceness is limited to 0 by default on arch, we make this work with pam login by setting nice limit to -10 for users in group games.
+ ## See file /etc/security/limits.d/10-games.conf.
+ echo ""
+ echo "The wine executable used by proton can automatically set the niceness of a process;"
+ echo "Consider adding yourself to the games group to make this work by issuing: usermod -a -G games"
+ echo ""
+}
+
+post_upgrade() {
+ post_install
+} \ No newline at end of file