Skip to content

Commit

Permalink
gui-wm/sway: Add support for seatd
Browse files Browse the repository at this point in the history
Signed-off-by: Haelwenn (lanodan) Monnier <[email protected]>
Closes: gentoo#17521
Signed-off-by: Aaron Bauman <[email protected]>
  • Loading branch information
lanodan authored and FuzzyGophers committed Nov 11, 2020
1 parent 1a5bd98 commit 6b78bcb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions gui-wm/sway/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<flag name="elogind">Enable support for rootless session via elogind</flag>
<flag name="fish-completion">Enable fish completion support</flag>
<flag name="man">Build and install man pages</flag>
<flag name="seatd">Enable support for rootless session via <pkg>sys-auth/seatd</pkg></flag>
<flag name="swaybar">Install 'swaybar': sway's status bar component</flag>
<flag name="swaybg">Install 'swaybg': allows to set a desktop background image</flag>
<flag name="swayidle">Install 'swayidle': idle manager to run commands when user is inactive</flag>
Expand Down
12 changes: 6 additions & 6 deletions gui-wm/sway/sway-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fi

LICENSE="MIT"
SLOT="0"
IUSE="elogind fish-completion +man +swaybar +swaybg +swayidle +swaylock +swaymsg +swaynag systemd tray wallpapers X zsh-completion"
IUSE="elogind fish-completion +man +swaybar +swaybg +swayidle +swaylock +swaymsg +swaynag seatd systemd tray wallpapers X zsh-completion"
REQUIRED_USE="?? ( elogind systemd )
tray? ( || ( elogind systemd ) )"

Expand All @@ -44,11 +44,11 @@ DEPEND="
X? ( x11-libs/libxcb:0= )
"
if [[ ${PV} == 9999 ]]; then
DEPEND+="~gui-libs/wlroots-9999:=[elogind=,systemd=,X=]"
DEPEND+="~gui-libs/wlroots-9999:=[elogind=,seatd=,systemd=,X=]"
else
DEPEND+="
>=gui-libs/wlroots-0.11.0:=[elogind=,systemd=,X=]
<gui-libs/wlroots-0.12.0:=[elogind=,systemd=,X=]
>=gui-libs/wlroots-0.11.0:=[elogind=,seatd=,systemd=,X=]
<gui-libs/wlroots-0.12.0:=[elogind=,seatd=,systemd=,X=]
"
fi
RDEPEND="
Expand Down Expand Up @@ -99,14 +99,14 @@ src_configure() {
}

pkg_preinst() {
if ! use systemd && ! use elogind; then
if ! use systemd && ! use elogind && ! use seatd; then
fowners root:0 /usr/bin/sway
fperms 4511 /usr/bin/sway
fi
}

pkg_postinst() {
if ! use systemd && ! use elogind; then
if ! use systemd && ! use elogind && ! use seatd; then
elog ""
elog "If you use ConsoleKit2, remember to launch sway using:"
elog "exec ck-launch-session sway"
Expand Down

0 comments on commit 6b78bcb

Please sign in to comment.