-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
targets.genericLinux: include additional directories in XCURSOR_PATH #2902
targets.genericLinux: include additional directories in XCURSOR_PATH #2902
Conversation
modules/targets/generic-linux.nix
Outdated
# https://github.com/nix-community/home-manager/pull/2891#issuecomment-1101064521 | ||
home.sessionVariables = { | ||
XCURSOR_PATH = concatStringsSep ":" [ | ||
"\${XCURSOR_PATH}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to use sessionVariablesExtra
if we want to extend an environment variable.
I am wrong.
modules/targets/generic-linux.nix
Outdated
XCURSOR_PATH = concatStringsSep ":" [ | ||
"\${XCURSOR_PATH}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
XCURSOR_PATH = concatStringsSep ":" [ | |
"\${XCURSOR_PATH}" | |
XCURSOR_PATH = | |
"$XCURSOR_PATH\${XCURSOR_PATH:+:}" | |
+ concatStringsSep ":" [ |
This will need to be formatted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to consider the case where XCURSOR_PATH
is null and/or unset. Thanks!
This commit appends system-wide icon and pixmap directory and the icon directory in the home-manager profile to the XCURSOR_PATH session variable for the generic linux target. This is necessary because the default prefix for libXcursor resolves to the Nix store which excludes the aforementioned directories from being searched for cursor themes. [1] [1] - #2891 (comment).
…ix-community#2902) This commit appends system-wide icon and pixmap directory and the icon directory in the home-manager profile to the XCURSOR_PATH session variable for the generic linux target. This is necessary because the default prefix for libXcursor resolves to the Nix store which excludes the aforementioned directories from being searched for cursor themes. [1] [1] - nix-community#2891 (comment).
…ix-community#2902) This commit appends system-wide icon and pixmap directory and the icon directory in the home-manager profile to the XCURSOR_PATH session variable for the generic linux target. This is necessary because the default prefix for libXcursor resolves to the Nix store which excludes the aforementioned directories from being searched for cursor themes. [1] [1] - nix-community#2891 (comment).
…ix-community#2902) This commit appends system-wide icon and pixmap directory and the icon directory in the home-manager profile to the XCURSOR_PATH session variable for the generic linux target. This is necessary because the default prefix for libXcursor resolves to the Nix store which excludes the aforementioned directories from being searched for cursor themes. [1] [1] - nix-community#2891 (comment).
This commit appends system-wide icon and pixmap directory and the icon
directory in the home-manager profile to the XCURSOR_PATH session variable
for the generic linux target. This is necessary because the default prefix
for libXcursor resolves to the Nix store which excludes the aforementioned
directories from being searched for cursor themes. [1]
[1] - #2891 (comment).
Description
cc: @EHfive
Checklist
Change is backwards compatible.
Code formatted with
./format
.Code tested through
nix-shell --pure tests -A run.all
.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Added myself as module maintainer. See example.
Added myself and the module files to
.github/CODEOWNERS
.