Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The problem is that the WSLg layer looks up the *.desktop files in these folders:
None of which exists in NixOS by default.
This adds a symlink to per-user profile for the default WSL user. With the symlinks in place WSLg can find *.desktop files and show up GUI apps in Windows Start menu.
Symlinking icons also makes sure correct icons appear for the Start menu entries and running apps.
This resolves #362
Note that AFAIK the WSLg applications folder discovery happens just after start of the WSL distribution, so this might require WSL restart after this has been applied for WSLg to pick up the folders/apps.