diff options
Diffstat (limited to 'alacritty-xwayland-patch')
-rwxr-xr-x | alacritty-xwayland-patch | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/alacritty-xwayland-patch b/alacritty-xwayland-patch index 11d9e9d3bc0d..a2a29148258d 100755 --- a/alacritty-xwayland-patch +++ b/alacritty-xwayland-patch @@ -1,5 +1,10 @@ #!/bin/sh path="/usr/share/applications/Alacritty.desktop" -sed -i "s|^Exec=|Exec=env WAYLAND_DISPLAY= |" $path + +if [[ "$1" = "remove" ]]; then + sed -i "s|^Exec=env WAYLAND_DISPLAY= |Exec=|" $path +else + sed -i "s|^Exec=|Exec=env WAYLAND_DISPLAY= |" $path +fi |