Revert WhatsApp theme bridge

The native messaging host, extension shim, and lifecycle machinery are too complicated for the value this integration provides.
This commit is contained in:
David Heinemeier Hansson
2026-08-01 12:44:40 -07:00
parent 237405215d
commit 66427571bc
15 changed files with 1 additions and 964 deletions
-24
View File
@@ -1,24 +0,0 @@
echo "Add the WhatsApp Omarchy Theme extension and register its native messaging host"
WHATSAPP_THEME_EXT="$OMARCHY_PATH/default/chromium/extensions/whatsapp-theme"
add_whatsapp_theme_extension() {
local file=$1
[[ -f $file ]] || return 0
grep -q "extensions/whatsapp-theme" "$file" && return 0
if grep -q "^--load-extension=" "$file"; then
sed -i --follow-symlinks "s|^--load-extension=\(.*\)$|--load-extension=\1,$WHATSAPP_THEME_EXT|" "$file"
else
echo "--load-extension=$WHATSAPP_THEME_EXT" >>"$file"
fi
}
for conf in chromium chrome google-chrome brave brave-beta brave-nightly brave-origin-beta microsoft-edge-stable; do
add_whatsapp_theme_extension "$HOME/.config/$conf-flags.conf"
done
# The extension follows the theme over native messaging (com.omarchy.theme), so
# register its host manifest in every Chromium profile root.
omarchy-install-chromium-theme