Add setuid pacman hook

robotanarchy 2016-07-02 10:14:08 +00:00
parent 9cc4a38d4e
commit c71f076626

31
Home.md

@ -156,3 +156,34 @@ Rotation is not currently supported. This needs to be implemented in WLC. See ht
#### HiDPI doesn't work.
It's not currently supported. As a workaround you can trying setting your resolution to half the actual resolution of your display. See https://github.com/SirCmpwn/sway/issues/213 for more info.
#### I run an [Arch Linux based distribution without systemd.](https://wiki.parabola.nu/OpenRC) How can I automagically apply the setuid-bit on sway after each upgrade?
Put this [pacman hook](https://wiki.archlinux.org/index.php/Pacman#Hooks) in `/etc/pacman.d/hooks/sway-setuid.hook` (you may need to create the `hooks` folder first):
```
[Trigger]
Operation = Install
Type = Package
Target = sway
[Trigger]
Operation = Upgrade
Type = Package
Target = sway
[Trigger]
Operation = Install
Type = Package
Target = sway-git
[Trigger]
Operation = Upgrade
Type = Package
Target = sway-git
[Action]
Description = Applying setuid-bit to /usr/bin/sway
When = PostTransaction
Exec = /usr/bin/chmod +s /usr/bin/sway
```