summarylogtreecommitdiffstats
path: root/alacritty-xwayland-patch
blob: a2a29148258db6cf4f9ca7ea56ead05c5716e8a2 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

path="/usr/share/applications/Alacritty.desktop"

if [[ "$1" = "remove" ]]; then
	sed -i "s|^Exec=env WAYLAND_DISPLAY= |Exec=|" $path
else
	sed -i "s|^Exec=|Exec=env WAYLAND_DISPLAY= |" $path
fi