← Back to issue list

Regenerate the GDK pixbuf loaders cache file if for whatever reason it isn't there (LP: #1863801).

View original Github issue

Metadata

Project
snapcraft
Number
#2948
Type
pull request
State
merged
Author
oSoMoN
Labels
—
Created
Updated
Closed

Current evaluation

PR #2948 merged as commit cb101dfaf: desktop extension's common/desktop-exports now regenerates the GDK pixbuf loaders cache when the file is missing (fixes LP: #1863801, chromium snap GTK file chooser crashes). Backport of snapcraft-desktop-helpers 769110c.

Resolution: closed resolved

Reason: Merged into snapcraft as commit cb101dfaf, changing the GDK pixbuf cache condition in extensions/desktop/common/desktop-exports to `if [ "$needs_update" = true ] || [ ! -f "$GDK_PIXBUF_MODULE_FILE" ]`, so the cache is rebuilt whenever it is absent. The change is present in the current tree, confirming the fix shipped.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The absence of the cache file (after manual deletion) was causing the chromium snap to crash when opening a GTK file dialog. This is a backport of the fix from the snapcraft-desktop-helpers project (https://github.com/ubuntu/snapcraft-desktop-helpers/commit/769110c9101c333c3ae6ccc3663098f094e580be).

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved PR #2948 merged as commit cb101dfaf: desktop extension's common/desktop-exports now regenerates the GDK pixbuf loaders cache when the file is missing (fixes LP: #1863801, chromium snap GTK file chooser crashes). Backport of snapcraft-desktop-helpers 769110c.
stealth/space-bunny-alpha — closed resolved Merged a one-line fix to regenerate the GDK pixbuf loaders cache when absent, preventing Chromium snap crashes in GTK file dialogs; backports commit 769110c.
qwen/qwen3.6-35b-a3b — — Merged a fix that regenerates the missing GDK pixbuf loaders cache to prevent chromium snap crashes during GTK file dialog operations. Backported from snapcraft-desktop-helpers, approved by one reviewer, and passed CI checks.
qwen3.6-35b-a3b-mtp-q6 — — Merged a backport that regenerates the missing GDK pixbuf loaders cache file, fixing chromium snap crashes when opening GTK file dialogs.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2041182 Desktop extension doesn't update GDK pixbuf module cache when reverting snapcraft (launchpad) open Desktop extensions keep a revision-specific .last_revision while sharing its GDK pixbuf cache, so snap reverts can reuse loaders from another revision and crash; the maintainer-approved move is not implemented.
77%
#1576289 image loaders (gdkpixbuf) not easy to integrate snapcraft (launchpad) closed GdkPixbuf image-loader support landed with the GNOME desktop extension in PR #2655 (b0c4319e5); PR #2948 later improved loader-cache generation.
70%