diff --git a/migrations/1760401344.sh b/migrations/1760401344.sh index 5e5ca300..a826d219 100644 --- a/migrations/1760401344.sh +++ b/migrations/1760401344.sh @@ -3,13 +3,13 @@ echo "Add Chromium crash workaround flag for Hyprland to existing configs" # Add flag to chromium-flags.conf if it exists and doesn't already have it if [[ -f ~/.config/chromium-flags.conf ]]; then if ! grep -qF -- "--disable-features=WaylandWpColorManagerV1" ~/.config/chromium-flags.conf; then - sed -i '$a # Chromium crash workaround for Wayland color management on Hyprland - see https://github.com/hyprwm/Hyprland/issues/11957\n--disable-features=WaylandWpColorManagerV1' ~/.config/chromium-flags.conf + sed -i -e '$a # Chromium crash workaround for Wayland color management on Hyprland - see https://github.com/hyprwm/Hyprland/issues/11957' -e '$a --disable-features=WaylandWpColorManagerV1' ~/.config/chromium-flags.conf fi fi # Add flag to brave-flags.conf if it exists and doesn't already have it if [[ -f ~/.config/brave-flags.conf ]]; then if ! grep -qF -- "--disable-features=WaylandWpColorManagerV1" ~/.config/brave-flags.conf; then - sed -i '$a # Chromium crash workaround for Wayland color management on Hyprland - see https://github.com/hyprwm/Hyprland/issues/11957\n--disable-features=WaylandWpColorManagerV1' ~/.config/brave-flags.conf + sed -i -e '$a # Chromium crash workaround for Wayland color management on Hyprland - see https://github.com/hyprwm/Hyprland/issues/11957' -e '$a --disable-features=WaylandWpColorManagerV1' ~/.config/brave-flags.conf fi fi