diff --git a/Running-Sway-without-systemd.md b/Running-Sway-without-systemd.md index 034d4c4..ad43765 100644 --- a/Running-Sway-without-systemd.md +++ b/Running-Sway-without-systemd.md @@ -49,22 +49,4 @@ To have sway run as root in order to gain access to the resources you need, you chmod +s /usr/bin/sway ``` -Sway will fork into a minimal slave process to keep these privileges, while dropping its own. As with any program, using setuid has serious security implications. - -# Tips and Tricks - -## Archlinux without systemd/elogind -In order to automatically keep the extra privileges after a sway installation/upgrade, add the following pacman hook to `/etc/pacman.d/hooks`: -``` -[Trigger] -Operation = Install -Operation = Upgrade -Type = Package -Target = sway -Target = sway-git - -[Action] -Description = Applying setuid-bit to sway -When = PostTransaction -Exec = /usr/bin/chmod +s /usr/bin/sway -``` \ No newline at end of file +Sway will fork into a minimal slave process to keep these privileges, while dropping its own. As with any program, using setuid has serious security implications. \ No newline at end of file