Skip to main content

Command Palette

Search for a command to run...

Display Package Icons Installed by Nix in Launcher

Updated
•1 min read•View as Markdown
Display Package Icons Installed by Nix in Launcher

Of course the icon is displayed only if the package ships a .desktop file.

I have tested this on KDE Plasma. It should work on other desktop environments too. It is not implementation specific.

Run the following manually or put it in your ~/.bashrc

export XDG_DATA_DIRS=~/.local/share/:~/.nix-profile/share:/usr/share
ln -s ~/.nix-profile/share/applications/*.desktop ~/.local/share/applications/

Now log out and log back in. Or if you are on KDE Plasma, you can run kbuildsycoca4 to rebuild the application launcher.

5 views

More from this blog

Aditya's blog

57 posts

Who tricked sands into thinking?