NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.36k stars 13.59k forks source link

Very long start of dolphin #325225

Open istudyatuni opened 2 months ago

istudyatuni commented 2 months ago

Describe the bug

I use package kdePackages.dolphin. When running dolphin from terminal, it starts very long (about 5-6 seconds to open window and about 5 seconds to render file tree), and icons doesn't render. But when I do

export QT_PLUGIN_PATH=/nix/store/x4ghagmp94ynzp5qdkdvia72g3i80awi-qtsvg-6.7.1/lib/qt-6/plugins:$QT_PLUGIN_PATH

it starts and works fine

Steps To Reproduce

Steps to reproduce the behavior:

  1. Run dolphin from terminal
  2. export QT_PLUGIN_PATH (see above)
  3. Run again

Expected behavior

dolphin starts fine

Screenshots

Details

![image](https://github.com/NixOS/nixpkgs/assets/43654815/ea1d8d13-66e0-4ce6-9f8f-7e8b080a3a4a) ![image](https://github.com/NixOS/nixpkgs/assets/43654815/84d1f04c-8961-4cfd-8902-673e05471d27)

Additional context

I discovered what was missing by accident: I opened empty link from okular, and its opened fine, and then compared env from within dolphin (using embedded konsole)

Default $QT_PLUGIN_PATH:

What added when running dolphin:

Dolphin version: 24.05.1 - from unstable. With dolphin from stable (24.02.2) behavior is the same

I also use qt5ct + kvantum

Notify maintainers

@K900

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.33, NixOS, 24.05 (Uakari), 24.05.1503.752c634c09ce`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

istudyatuni commented 3 weeks ago

Installing kdePackages.qtsvg fixes the problem