Replace polkit with seatd dependency

Since seatd has become a requirement for sway's logind support, we can leverage
this package to also obtain elevated system privileges instead of polkit.

Note that using seatd instead of polkit means that a user must be a part of the
"seat" group: Otherwise, the user will not be able to achieve the appropriate
privileged actions.

Also remove a few unnecessary extra packages from the optdepends to give polkit
a bit more visibility.
ledoian
Brett Cornwall 2 years ago
parent 0a8fda4637
commit 4c3aa92608

@ -5,7 +5,7 @@
pkgname=sway pkgname=sway
pkgver=1.7 pkgver=1.7
epoch=1 epoch=1
pkgrel=2 pkgrel=3
pkgdesc='Tiling Wayland compositor and replacement for the i3 window manager' pkgdesc='Tiling Wayland compositor and replacement for the i3 window manager'
arch=(x86_64) arch=(x86_64)
url='https://swaywm.org/' url='https://swaywm.org/'
@ -15,7 +15,7 @@ depends=(
'gdk-pixbuf2' 'gdk-pixbuf2'
'json-c' 'json-c'
'pango' 'pango'
'polkit' 'seatd'
'pcre' 'pcre'
'swaybg' 'swaybg'
'ttf-font' 'ttf-font'
@ -25,13 +25,12 @@ makedepends=(git meson ninja scdoc setconf wayland-protocols)
backup=(etc/sway/config) backup=(etc/sway/config)
optdepends=( optdepends=(
'dmenu: Application launcher' 'dmenu: Application launcher'
'grim: Screenshot utility'
'i3status: Status line' 'i3status: Status line'
'foot: Terminal emulator used in the default configuration'
'mako: Lightweight notification daemon' 'mako: Lightweight notification daemon'
'slurp: Select a region' 'polkit: System privilege control. Required if not using seatd service'
'swayidle: Idle management daemon' 'swayidle: Idle management daemon'
'swaylock: Screen locker' 'swaylock: Screen locker'
'wallutils: Timed wallpapers'
'waybar: Highly customizable bar' 'waybar: Highly customizable bar'
'xorg-xwayland: X11 support' 'xorg-xwayland: X11 support'
) )

@ -0,0 +1,13 @@
post_upgrade() {
cat << EOD
Sway's necessary privileges can now be obtained through seatd as well as the
incumbent polkit package. As such, polkit has been relegated to an optional
dependency.
Note that using seatd instead of polkit means that a user must be a part of the
"seat" group: Otherwise, the user will not be able to achieve the appropriate
privileged actions.
For more information, refer to the Sway wiki page.
EOD
}
Loading…
Cancel
Save