Task manager icons keeps disappearing

not sure what or why or even where is the issue, but almost all my task manager icons keeps disappearing showing only template that icon is here but not what icon unless i hover it shows the icon name and when i open the app the icon comes as should to visible on task manager and when app is closed it disappears again

image

1 Like

I’ve been experiencing this issue as well, some of the programs in the Plasma panel Icons-Only Task Manager will be displayed as a blank paper icon after switching to a new NixOS generation and deleting the previous NixOS generations. The icons for some programs (Konsole, Steam, Virt-Manager, Deluge-GTK) will show the blank icon when not running but the correct one when running though other programs (Firefox, Dolphin file manager, and ones installed through Flatpak) continue to display properly.

From what I see this is due to some programs being added to the file ~/.config/plasma-org.kde.plasma.desktop-appletsrc as references to the nix store location of the “.desktop” file instead of the generic “applications:program-name.desktop” style reference.

You can manually fix the situation by editing that line of the file and converting from the Nix store reference (ex: “file:///nix/store/ … /share/applications/program-name.desktop”) to a generic reference (ex: “applications:program-name.desktop”).

In my case the relevant section of the file .config/plasma-org.kde.plasma.desktop-appletsrc went from similar to this.

[Containments][2][Applets][33][Configuration][General]
launchers=applications:firefox.desktop,applications:org.kde.dolphin.desktop,file:///nix/store/fb68h648lp8zpxxy05ms94bzh5slyrrf-system-path/share/applications/steam.desktop

And works as expected like this.

[Containments][2][Applets][33][Configuration][General]
launchers=applications:firefox.desktop,applications:org.kde.dolphin.desktop,applications:steam.desktop
1 Like

for me i have small automated script that refesh and point to actual paths on each boot and update so no manually pointing anyhting and it works on even adding new pins to task manager it refresh all

this is on my home.nix file i added these

thosefirst i have shellAliases

shellAliases = {
      update = "nh os switch /home/phatle/NixOS && systemctl restart --user plasma-plasmashell";
      c = "clear";
      v = "kate";
      gc = "nix-collect-garbage -d";
    };

then i have the script that points all to correct paths

## -------------------------------------------------------------
  ## 7. TASKBAR ICON PERSISTENCE SCRIPT
  ## -------------------------------------------------------------
  # This script automatically fixes paper icons by converting
  # Nix Store paths to generic application references.
  home.activation.clean-plasma-launchers = lib.hm.dag.entryAfter ["writeBoundary"] ''
    $DRY_RUN_CMD sed -i 's|file:///nix/store/[^/]*/share/applications/|applications:|g' \
      ${config.home.homeDirectory}/.config/plasma-org.kde.plasma.desktop-appletsrc || true
  '';

now it is automated and all working no need to worry

1 Like