mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Merge pull request #4665 from dipeshbabu/fix/migration-hyprland-flag-newline
Fix Hyprland Chromium flags migration newline handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user