2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-15 12:22:26 +00:00
repo/wayland/sway-no-seat/post-install
Dylan Araps 1fbfcbef27
sway-no-seat: clarify rootless
NOTE: Our prior xorg-server worked the exact same way.
2021-07-13 16:10:57 +03:00

24 lines
584 B
Bash
Executable File

#!/bin/sh -e
chown root:input "$KISS_ROOT/usr/bin/sway"
chmod g+s "$KISS_ROOT/usr/bin/sway"
cat <<EOF
NOTE: You must be in the 'video' group.
NOTE: You must set XDG_RUNTIME_DIR in your shellrc
or .profile for things to work. This directory
must exist and must be writable by your user.
export XDG_RUNTIME_DIR=/run/user/\$(id -u)
NOTE: You must be the first to call DRMSetMaster.
If you cannot fulfil this requirement, you must
use the 'sway' package and run the 'seatd' daemon.
Another option is to setuid root the sway binary.
EOF