Skip to content

Commit 37d278e

Browse files
committed
fix: Missing app icons from nix installs
1 parent 77e14a2 commit 37d278e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

etc/profile.d/pop-nix.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Enables application icons to appear
2+
if command -v nix-env > /dev/null; then
3+
DEFAULT_PROFILE=/nix/var/nix/profiles/default/share
4+
USER_PROFILE=/nix/var/nix/profiles/per-user/${USER}/profile/share
5+
export XDG_DATA_DIRS=${DEFAULT_PROFILE}:${USER_PROFILE}:${XDG_DATA_DIRS}
6+
fi

0 commit comments

Comments
 (0)