mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 14:34:07 +01:00
Add setuid pacman hook
parent
9cc4a38d4e
commit
c71f076626
33
Home.md
33
Home.md
@ -155,4 +155,35 @@ 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.
|
||||
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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user