Skip to content

Commit 052af9b

Browse files
d-casclaude
andcommitted
Add migration to update existing Chromium/Brave configs with crash fix
Adds migration script to append --disable-features=WaylandWpColorManagerV1 to existing users' chromium-flags.conf and brave-flags.conf files. The script: - Checks if config files exist before attempting to modify them - Uses grep to verify the flag isn't already present - Only adds the flag and explanatory comment if needed - Handles both Chromium and Brave configurations This ensures existing Omarchy users get the Hyprland crash workaround without needing to manually update their configs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 35fdc8c commit 052af9b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

migrations/1760401344.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
echo "Add Chromium crash workaround flag for Hyprland to existing configs"
2+
3+
# Add flag to chromium-flags.conf if it exists and doesn't already have it
4+
if [[ -f ~/.config/chromium-flags.conf ]]; then
5+
if ! grep -q '\-\-disable-features=WaylandWpColorManagerV1' ~/.config/chromium-flags.conf; then
6+
echo '# Chromium crash workaround for Wayland color management on Hyprland - see https://github.com/hyprwm/Hyprland/issues/11957' >> ~/.config/chromium-flags.conf
7+
echo '--disable-features=WaylandWpColorManagerV1' >> ~/.config/chromium-flags.conf
8+
fi
9+
fi
10+
11+
# Add flag to brave-flags.conf if it exists and doesn't already have it
12+
if [[ -f ~/.config/brave-flags.conf ]]; then
13+
if ! grep -q '\-\-disable-features=WaylandWpColorManagerV1' ~/.config/brave-flags.conf; then
14+
echo '# Chromium crash workaround for Wayland color management on Hyprland - see https://github.com/hyprwm/Hyprland/issues/11957' >> ~/.config/brave-flags.conf
15+
echo '--disable-features=WaylandWpColorManagerV1' >> ~/.config/brave-flags.conf
16+
fi
17+
fi

0 commit comments

Comments
 (0)