summarylogtreecommitdiffstats
path: root/obs-kmscap-git.install
blob: 8a1b0e10882455257a299c7d1c9a4f9fc092fb3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
cat << EOF
Because the Linux kernel isolates GPU memory framebuffers by their allocator
processes (typically your Wayland/X11 display server), regular applications are
blocked from intercepting the handles needed to read them. So this package grants
the helper binary the system privileges required to read these handles with:

    setcap cap_sys_admin+ep /usr/bin/obs-kmscap-helper

Refer to the obs-kmscap documentation on GitHub for more information.
EOF
    setcap cap_sys_admin+ep /usr/bin/obs-kmscap-helper
}

post_upgrade() {
    setcap cap_sys_admin+ep /usr/bin/obs-kmscap-helper
}