From 4c3aa92608a24bfa1b7e556791774f7021262768 Mon Sep 17 00:00:00 2001 From: Brett Cornwall Date: Wed, 11 May 2022 05:24:43 +0000 Subject: [PATCH] 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. --- PKGBUILD | 9 ++++----- sway.install | 13 +++++++++++++ 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 sway.install diff --git a/PKGBUILD b/PKGBUILD index 160b6ca..864de06 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ pkgname=sway pkgver=1.7 epoch=1 -pkgrel=2 +pkgrel=3 pkgdesc='Tiling Wayland compositor and replacement for the i3 window manager' arch=(x86_64) url='https://swaywm.org/' @@ -15,7 +15,7 @@ depends=( 'gdk-pixbuf2' 'json-c' 'pango' - 'polkit' + 'seatd' 'pcre' 'swaybg' 'ttf-font' @@ -25,13 +25,12 @@ makedepends=(git meson ninja scdoc setconf wayland-protocols) backup=(etc/sway/config) optdepends=( 'dmenu: Application launcher' - 'grim: Screenshot utility' 'i3status: Status line' + 'foot: Terminal emulator used in the default configuration' 'mako: Lightweight notification daemon' - 'slurp: Select a region' + 'polkit: System privilege control. Required if not using seatd service' 'swayidle: Idle management daemon' 'swaylock: Screen locker' - 'wallutils: Timed wallpapers' 'waybar: Highly customizable bar' 'xorg-xwayland: X11 support' ) diff --git a/sway.install b/sway.install new file mode 100644 index 0000000..82a7d9f --- /dev/null +++ b/sway.install @@ -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 +}