onagre-launcher / onagre

A general purpose application launcher for X and wayland inspired by rofi/wofi and alfred
MIT License
545 stars 26 forks source link

onagre takes a long time to open #85

Open TurtleMeds opened 1 month ago

TurtleMeds commented 1 month ago

Describe the bug onagre takes about 6-10 seconds to open.

Config default

To Reproduce launch time onagre spam escape look at time

Expected behavior open in a reasonable time

Screenshots image

Window manager (please complete the following information):

Additional context Arch linux AMD Ryzen 5 7530U 16 gb of memory

oknozor commented 1 month ago

I have seen this before without being able to find a reproducer. Does this still happen on consecutive launches ?

salahoued commented 2 weeks ago

I have compiled the 1.1.0 on openSUSE Tumblweed, and I found it lagging even when typing and displaying results.

oknozor commented 1 week ago

Do you have the same behavior woith icons disabled ?

salahoued commented 1 week ago

Sorry, but how can I do that?

oknozor commented 1 week ago

you can copy paste this config https://docs.onagre.dev/gallery.html#murz

salahoued commented 1 week ago

Way better now, especially the search is fast, The start up didn't take as much time.

EDIT: tried the default theme, and Hollow theme, they have the same issue, especially the default theme it takes even more time to start up

Thanks

oknozor commented 1 week ago

Thanks for the report, we probably need to cache icon paths. I'll do this asap.

salahoued commented 1 week ago

Hi @oknozor , I'm not sure about @TurtleMeds , but for my part, it is most likely because of the icon-theme used in the configuration, for example the Hollow theme uses the Papirus icon theme which I don't have installed, when modifying the hollow.scss theme to use the Breeze icon theme the startup is much faster.

I don't know which icon theme the default theme uses, but it still has the same issue. Where can I find the .scss file for the default theme?

oknozor commented 1 week ago

The default theme is hardcoded, it uses Adwaita I think