Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

Add post_upgrade hook to clear GPU cache#7

Open
hjanuschka wants to merge 1 commit into
masterfrom
add-gpucache-post-upgrade-hook
Open

Add post_upgrade hook to clear GPU cache#7
hjanuschka wants to merge 1 commit into
masterfrom
add-gpucache-post-upgrade-hook

Conversation

@hjanuschka

Copy link
Copy Markdown
Collaborator

Summary

This PR adds an install script (omarchy-chromium.install) that clears the GPU shader cache on package upgrades.

Problem

Cached shaders from older Chromium versions can cause rendering issues after browser upgrades:

  • Video flickering (especially on NVIDIA GPUs with Wayland)
  • GPU process crashes
  • Rendering glitches
  • WebGL failures

This is a common troubleshooting step that users have to perform manually, but package managers don't handle it automatically.

Solution

The post_upgrade() function in the install script:

  • Clears GPUCache and ShaderCache directories for all users
  • Handles both default and additional browser profiles
  • Runs automatically during pacman -Syu upgrades

Files Changed

  • omarchy-chromium.install (new) - Install script with post_upgrade hook
  • PKGBUILD - Added install=omarchy-chromium.install directive
  • PKGBUILD.arm64 - Added install=omarchy-chromium.install directive

Related Issues

Test Plan

  • Build package with makepkg
  • Install/upgrade package
  • Verify GPU cache directories are cleared
  • Verify Chromium launches and videos play correctly after upgrade

This adds an install script that clears the GPU shader cache on package
upgrades. Cached shaders from older Chromium versions can cause:
- Video flickering (especially on NVIDIA with Wayland)
- GPU process crashes
- Rendering glitches
- WebGL failures

The script clears GPUCache and ShaderCache directories for all users
during package upgrades, preventing these issues.

Fixes video rendering issues after upgrades.
See: https://issues.chromium.org/issues/469458278
See: basecamp/omarchy#3891
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant