Skip to content

Commit

Permalink
Merge pull request #368 from mprasil/user-profile-applications-symlin…
Browse files Browse the repository at this point in the history
…ks-fix

Fix symlink creation of per-user apps/icons folder
  • Loading branch information
SuperSandro2000 authored Jan 3, 2024
2 parents f557430 + 19400a8 commit c81bc3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/wsl-distro.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ in
if [[ -d "$systemConfig/sw/share/$x" ]]; then
targets+=("$systemConfig/sw/share/$x/.")
fi
if [[ -d "/etc/profiles/per-user/${cfg.defaultUser}/share/$x" ]]; then
targets+=("/etc/profiles/per-user/${cfg.defaultUser}/share/$x/.")
if [[ -d "/etc/profiles/per-user/${config.users.users.${cfg.defaultUser}.name}/share/$x" ]]; then
targets+=("/etc/profiles/per-user/${config.users.users.${cfg.defaultUser}.name}/share/$x/.")
fi
if (( ''${#targets[@]} != 0 )); then
Expand Down

0 comments on commit c81bc3f

Please sign in to comment.