Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: symlink creation of per-user apps/icons folder #368

Commits on Dec 18, 2023

  1. Fix symlink creation of per-user apps/icons folder

    The code relied on `defaultUser` attribute name in `config.users.users`
    to be the same as the username. This is not always the case as the
    username can be set by `name` attribute inside the user configuration
    
    So for following user
    
    ```
    users.users.foo.name = "bar"
    ```
    
    the `wsl.defaultUser = "foo"` works, but the `wsl.startMenuLaunchers =
    true` won't work because it tries to find applications folder at
    `/etc/profiles/per-user/foo/share` rather than
    `/etc/profiles/per-user/bar/share` that is actually created.
    
    This uses the `name` attribute of that user instead.
    mprasil committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    19400a8 View commit details
    Browse the repository at this point in the history