NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.34k stars 13.58k forks source link

Duplicate entries on systemsettings with Plasma 5.16 (19.09) #71023

Open seqizz opened 4 years ago

seqizz commented 4 years ago

Describe the bug After upgrading to 19.09 (and thus plasma desktop 5.16), started to see duplicate elements on systemsettings. strace didn't show different nix store paths for the duplicate elements (like breeze or oxygen themes) but they're listed 2/3 times.

To Reproduce Steps to reproduce the behavior:

  1. (Optional, to be sure this is not a caching issue) Create a new user
  2. Login to plasma5 desktop
  3. Open systemsettings > Look and feel section

Screenshots image

Metadata

ttuegel commented 4 years ago

I see the same on master. Because you see this with a new user, my first hypothesis is that this is due to duplicate search paths. We know some Qt/KDE applications have duplicate search paths due to a limitation in mkWrapper.

vandenoever commented 4 years ago

I can confirm this bug on NixOS 19.09. I'm seeing duplicate Breeze and Breeze Dark, but only one Oxygen.

stale[bot] commented 4 years ago

Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse. 3. Ask on the #nixos channel on irc.freenode.net.
ElXreno commented 3 years ago

Still reproduces for me on 21.05.

nixos-discourse commented 2 years ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/who-uses-nixos-with-kde/18212/19

ashahir05 commented 2 years ago

Can confirm this appears on unstable.

jhillyerd commented 1 year ago

Seeing this on 22.11 release, only for breeze themes though.

ghost commented 1 year ago

Same here, fresh install with KDE iso.

FireSpike0 commented 7 months ago

I'm not very familiar with the internals of Plasma, but if Plasma uses $XDG_DATA_DIRS as its search path, then the duplicate search path hypothesis is probably correct and also (partially) explains why Breeze is the only theme shown twice. On my OS, Breeze is contained in:

As seen in the list above, Oxygen only shows up once, while Breeze shows up twice. Both paths are contained in my $XDG_DATA_DIRS variable each without the /plasma/look-and-feel subpath. I'm not familiar enough with Nix to fix or debug this further, but I guess this could be problem.