NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.08k stars 14.06k forks source link

Konsole colorscheme and profiles shown twice #266938

Open Svenum opened 11 months ago

Svenum commented 11 months ago

Describe the bug

Every colorscheme and profile in the package directory "pkgs.libsForQt5.ksonole/share/konsole/" is shown twice in konsole.

Steps To Reproduce

Steps to reproduce the behavior:

  1. install pkgs.libsForQt5.konsole
  2. look at the colorshemes in the profile settings
  3. there should be every colorsheme twice

Expected behavior

There should every colorscheme only once.

Screenshots

image

Additional context

I think it is because it found the profile/colorsheme in "/nix/store/.../share/konsole/" and in "/run/current-system/sw/share/konsole/.

Notify maintainers

@ttuegel

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.5.7, NixOS, 23.11 (Tapir), 23.11.20231016.ca012a0`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.0`
 - channels(root): `"nixos-23.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
MikaelFangel commented 11 months ago

Hm, that's weird, I can't reproduce this on my system?

❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.61, NixOS, 23.11 (Tapir), 23.11.20231104.85f1ba3`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.1`
 - channels(root): `""`
 - channels(mikael): `""`
 - nixpkgs: `/nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source`

20231112_16h15m55s_grim

Svenum commented 11 months ago

Thats weird, I have three system and on all three is the same behaviour. Do you install Konsole manualy or via enabling the plasma desktop?

MikaelFangel commented 11 months ago

The test I did was with a nix shell but I also have plasma enabled. My systems is newer than the one you listed in the issue, maybe that solves it somehow? 🤔

Svenum commented 11 months ago

I will update and test again

ShalokShalom commented 11 months ago

Three times for me: https://github.com/NixOS/nixpkgs/issues/267687

Svenum commented 11 months ago

I have updated my Flake to newest version and issue still exist.

❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.0, NixOS, 23.11 (Tapir), 23.11.20231104.85f1ba3`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.1`
 - channels(root): `"nixos-23.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
ShalokShalom commented 11 months ago

As a heads up:

Adding themes via the in-build "Get new" feature does not result in duplicates.

Screenshot_20231119_201115

Svenum commented 11 months ago

I use unstable NixOS. This is in my flake.nix in the inputs:

nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

ShalokShalom commented 11 months ago

So, this is theoretically something that we want to be fixed before the release of 23.11, correct?

ShalokShalom commented 11 months ago

As another heads up:

When you move at a theme, apply the theme and then move to the duplicate, the "Apply" button stays grayed out.

So the system thinks, the theme is really identical. I don't know if it checked the actual values of the colors, or simply the name of the theme.

It could be helpful, I guess.

KucharczykL commented 3 months ago

I also have this issue

> nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.43, NixOS, 24.11 (Vicuna), 24.11.20240728.52ec9ac`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"home-manager-24.05.tar.gz, nixos-24.05"`
 - nixpkgs: `/nix/store/bcghcr9qwqmanpds017w75mcqda4fgab-source`