Skip to content

fix: Resolve generating multiple thumbnails in Dolphin#127

Open
troxor wants to merge 1 commit into
unlimitedbacon:masterfrom
troxor:multi-preview-kde
Open

fix: Resolve generating multiple thumbnails in Dolphin#127
troxor wants to merge 1 commit into
unlimitedbacon:masterfrom
troxor:multi-preview-kde

Conversation

@troxor
Copy link
Copy Markdown

@troxor troxor commented May 9, 2026

This adjusts lib.rs so that the graphics context is initialized once and not for every thumbnail.

I tested on Arch with KDE/Dolphin running on hardware, and on openSUSE Leap 16.0 with GNOME/Nautilus in a VM.

On the VM, I had to set LIBGL_ALWAYS_SOFTWARE=1 and install libOSMesa8 to get output. Otherwise, ~/.cache/thumbnails/fail would accumulate failed thumbnails.

Thanks to @twelho in the comment here for the clues.

Fixes stl-thumb-kde#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error generating thumbnails in Dolphin

1 participant