Missing desktop icons when package is installed globally

System information
OS: NixOS 25.05 (Warbler) x86_64
Host: Redmi Book Pro 16 2024
Kernel: Linux 6.15.1
Uptime: 10 mins
Packages: 1161 (nix-system)
Shell: bash 5.2.37
Display (eDP-1): 3072x1920 @ 165 Hz in 16" [Built-in]
DE: GNOME
WM: Mutter (X11)
WM Theme: Adwaita
Theme: Adwaita [GTK2/3/4]
Icons: Adwaita [GTK2/3/4]
Font: Adwaita Sans (11pt) [GTK2/3/4]
Cursor: Adwaita (24px)
Terminal: GNOME Console
CPU: Intel(R) Core(TM) Ultra 7 155H (22) @ 4.80 GHz
GPU: Intel Arc Graphics @ 2.25 GHz [Integrated]
Memory: 3.56 GiB / 30.81 GiB (12%)
Swap: Disabled
Disk (/): 14.26 GiB / 936.83 GiB (2%) - ext4
Local IP (wlp0s20f3): 192.168.0.103/24
Battery (BX90): 78% [Discharging]
Locale: en_US.UTF-8

When I install packages like telegram-desktop or gnome-tweaks in users.users.<user>.packages there is a desktop icon. When I move them into environment.systemPackages I don’t get an icon, although I can still launch the app from the terminal just fine.

Weirdly enough, Neovim still generates a desktop entry “Neovim wrapper”. The only desktop I’d be fine missing, lmao.

If this is an expected behaviour for when you install package globally, why does Neovim still has an icon? Is this a problem with the package?

I have never observed your described problem.

But I assume it might be related to the caching behaviour of your app launcher.

Most rebuild the cache on a reboot.

Yea, nvm, the restart fixed it. I was confused, because I thought I had tried it.

The problem turned out to be between the monitor and the chair :smile: