https://bugs.kde.org/show_bug.cgi?id=484682

--- Comment #12 from Dmitrii Chermnykh <chermnykh2...@gmail.com> ---
On NixOS:
If I do "edit application" in plasma menu it shows the location of .desktop
file as "/nix/store/.../share/applications", but if I try to find the .desktop
item in XDG_DATA_DIRS it resolves into "/run/current-system/sw/share":

fd spectacle.desktop $(echo $XDG_DATA_DIRS | sd ':' ' ')
[fd error]: Search path '/home/chermnyx/.local/share/flatpak/exports/share' is
not a directory.
[fd error]: Search path '/home/chermnyx/.nix-profile/share' is not a directory.
[fd error]: Search path '/nix/profile/share' is not a directory.
[fd error]: Search path '/home/chermnyx/.local/state/nix/profile/share' is not
a directory.
[fd error]: Search path '/nix/var/nix/profiles/default/share' is not a
directory.
/run/current-system/sw/share/applications/org.kde.spectacle.desktop
/run/current-system/sw/share/kglobalaccel/org.kde.spectacle.desktop

It seems that the symlinks are getting resolved somewhere and plasma gets
confused by nix store paths
It also makes any existing .desktop entry cache invalid on each nixos system
rebuild (nixos does `rm -fv $HOME/.cache/ksycoca*` as a workaround:
https://github.com/NixOS/nixpkgs/pull/292748/files)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to