diff options
author | detiam | 2024-04-15 10:30:23 +0800 |
---|---|---|
committer | detiam | 2024-04-15 10:30:23 +0800 |
commit | bce1bfc2d04ae78dd33ad8b0a7e510cc5d94e043 (patch) | |
tree | 311386619a5ad7de9c1bc195ee808eee704ae5d9 | |
parent | c7f4587950ee105f42dac43e42dce653d0c594ff (diff) | |
download | aur-bce1bfc2d04ae78dd33ad8b0a7e510cc5d94e043.tar.gz |
stop auto setcap, add a note at installtion time
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | gamescope.install | 17 |
3 files changed, 18 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = gamescope-nvidia pkgdesc = SteamOS session compositing window manager (NVIDIA patch) pkgver = 3.14.3 - pkgrel = 1 + pkgrel = 2 url = https://github.com/sharkautarch/gamescope/tree/nvidia-fix install = gamescope.install arch = x86_64 @@ -7,7 +7,7 @@ pkgname=gamescope-nvidia _pkgname=gamescope pkgver=3.14.3 -pkgrel=1 +pkgrel=2 pkgdesc='SteamOS session compositing window manager (NVIDIA patch)' arch=(x86_64) url=https://github.com/sharkautarch/gamescope/tree/nvidia-fix diff --git a/gamescope.install b/gamescope.install index 4e54fdfd0ad6..c457e086d980 100644 --- a/gamescope.install +++ b/gamescope.install @@ -1,5 +1,20 @@ +all_off="$(tput sgr0)" +bold="${all_off}$(tput bold)" +blue="${bold}$(tput setaf 4)" +yellow="${bold}$(tput setaf 3)" + +msg_blue() { + printf "${blue}==>${bold} $1${all_off}\n" +} + +note() { + printf "${blue}==>${yellow} Note:${bold} $1${all_off}\n" +} + do_setcap() { - setcap cap_sys_nice=eip $(realpath $(which gamescope)) + note "${all_off}\"No CAP_SYS_NICE, falling back to regular-priority compute and threads.\"" + msg_blue 'Use the following command to resolve the above output maybe print by Gamescope, but this probably will cause stutters.' + msg_blue "${all_off}setcap cap_sys_nice=eip \"\$(realpath \"\$(which gamescope)\")\"" } post_install() { |