pop-os/cosmic-settings

Appearance page makes application unresponsive when Breeze cursor theme is installed

Opened this issue · 1 comments

The application becomes unresponsive for a few seconds when accessing the Appearance page for the first time after opening the app when breeze-cursor-theme is installed.

Steps to reproduce

  1. Install breeze-cursor-theme.
  2. Open cosmic-settings
  3. Access Desktop > Appearance

This may not be exclusive to Breeze, haven't tested other themes.

screenshot-2024-12-07-05-30-52

if let Ok(handles) =
tokio::task::spawn_blocking(|| preview_handles(theme, valid_dirs)).await
{
icon_themes.insert(IconTheme { id, name }, handles);
}

This seems to scale terribly with the amount of themes installed. But I still wonder why it performs so terribly,cause it is supposed to be non-blocking.
Also it runs every time and not just when the toolkit dialog is opened.