Skip to content

Commit

Permalink
gnome-base/gnome-shell: add cap_sys_nice capability for gnome-shell
Browse files Browse the repository at this point in the history
Signed-off-by: Qiu Luo <nibon7@163.com>
  • Loading branch information
nibon7 committed Aug 10, 2021
1 parent 0830973 commit f9864d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions gnome-base/gnome-shell/gnome-shell-40.2.ebuild
Expand Up @@ -4,14 +4,14 @@
EAPI=7
PYTHON_COMPAT=( python3_{8,9} )

inherit gnome.org gnome2-utils meson python-single-r1 virtualx xdg
inherit fcaps gnome.org gnome2-utils meson python-single-r1 virtualx xdg

DESCRIPTION="Provides core UI functions for the GNOME desktop"
HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShell"

LICENSE="GPL-2+ LGPL-2+"
SLOT="0"
IUSE="+bluetooth +browser-extension elogind gtk-doc +ibus +networkmanager systemd telepathy"
IUSE="+bluetooth +browser-extension caps elogind gtk-doc +ibus +networkmanager systemd telepathy"
REQUIRED_USE="${PYTHON_REQUIRED_USE}
?? ( elogind systemd )"

Expand Down Expand Up @@ -183,6 +183,9 @@ pkg_postinst() {
ewarn "You will need to enable kms support in x11-drivers/nvidia-drivers,"
ewarn "otherwise Gnome will fail to start"
fi

# CAP_SYS_NICE is required for rt-scheduler feature
use caps && fcaps cap_sys_nice usr/bin/gnome-shell
}

pkg_postrm() {
Expand Down
7 changes: 5 additions & 2 deletions gnome-base/gnome-shell/gnome-shell-40.3.ebuild
Expand Up @@ -4,14 +4,14 @@
EAPI=7
PYTHON_COMPAT=( python3_{8,9} )

inherit gnome.org gnome2-utils meson python-single-r1 virtualx xdg
inherit fcaps gnome.org gnome2-utils meson python-single-r1 virtualx xdg

DESCRIPTION="Provides core UI functions for the GNOME desktop"
HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShell"

LICENSE="GPL-2+ LGPL-2+"
SLOT="0"
IUSE="+bluetooth +browser-extension elogind gtk-doc +ibus +networkmanager systemd telepathy"
IUSE="+bluetooth +browser-extension caps elogind gtk-doc +ibus +networkmanager systemd telepathy"
REQUIRED_USE="${PYTHON_REQUIRED_USE}
?? ( elogind systemd )"

Expand Down Expand Up @@ -183,6 +183,9 @@ pkg_postinst() {
ewarn "You will need to enable kms support in x11-drivers/nvidia-drivers,"
ewarn "otherwise Gnome will fail to start"
fi

# CAP_SYS_NICE is required for rt-scheduler feature
use caps && fcaps cap_sys_nice usr/bin/gnome-shell
}

pkg_postrm() {
Expand Down

0 comments on commit f9864d1

Please sign in to comment.