Merge pull request #4665 from dipeshbabu/fix/migration-hyprland-flag-newline

Fix Hyprland Chromium flags migration newline handling
This commit is contained in:
David Heinemeier Hansson
2026-02-20 22:38:34 +01:00
committed by GitHub
+2 -2
View File
@@ -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