commit 06f8a6d2ea25861d67be317aeadeef918e6af7b4
parent 599b16834d8056cbd193c686617bb9a4a59182ff
Author: Scott Moreau <oreaus@gmail.com>
Date: Mon, 23 Mar 2020 21:52:52 -0600
install.sh: Set CAP_SYS_ADMIN if neither systemd nor elogind is found
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/install.sh b/install.sh
@@ -121,6 +121,10 @@ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${PREFIX}/${DEST_LIBDIR}/pkgconfig meson build
ninja -C build
$SUDO ninja -C build install
+if ! pkg-config --exists libsystemd && ! pkg-config --exists libelogind && pkg-config --exists libcap; then
+ $SUDO setcap cap_sys_admin=eip "$PREFIX/bin/wayfire"
+fi
+
# Install a minimalistic, but still usable configuration
# First argument is the name of the file
# Second argument is the name of the template