Skip to content

targets.genericLinux: include additional directories in XCURSOR_PATH#2902

Merged
berbiche merged 1 commit intonix-community:masterfrom
polykernel:home-pointercursor/xcursor-path
Apr 20, 2022
Merged

targets.genericLinux: include additional directories in XCURSOR_PATH#2902
berbiche merged 1 commit intonix-community:masterfrom
polykernel:home-pointercursor/xcursor-path

Conversation

@polykernel
Copy link
Copy Markdown
Contributor

@polykernel polykernel commented Apr 18, 2022

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

    {component}: {description}
    
    {long description}
    

    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.

@polykernel polykernel requested a review from rycee as a code owner April 18, 2022 22:23
Comment thread modules/targets/generic-linux.nix Outdated
# https://github.com/nix-community/home-manager/pull/2891#issuecomment-1101064521
home.sessionVariables = {
XCURSOR_PATH = concatStringsSep ":" [
"\${XCURSOR_PATH}"
Copy link
Copy Markdown
Member

@berbiche berbiche Apr 19, 2022

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.

Comment thread modules/targets/generic-linux.nix Outdated
Comment on lines +50 to +51
XCURSOR_PATH = concatStringsSep ":" [
"\${XCURSOR_PATH}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
XCURSOR_PATH = concatStringsSep ":" [
"\${XCURSOR_PATH}"
XCURSOR_PATH =
"$XCURSOR_PATH\${XCURSOR_PATH:+:}"
+ concatStringsSep ":" [

This will need to be formatted.

Copy link
Copy Markdown
Contributor Author

@polykernel polykernel Apr 19, 2022

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!

@berbiche berbiche mentioned this pull request Apr 19, 2022
7 tasks
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).
@berbiche berbiche merged commit 8ec13d3 into nix-community:master Apr 20, 2022
@polykernel polykernel deleted the home-pointercursor/xcursor-path branch April 20, 2022 00:07
teto pushed a commit to teto/home-manager that referenced this pull request Apr 28, 2022
…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).
@teto teto mentioned this pull request Aug 22, 2022
7 tasks
teto pushed a commit to teto/home-manager that referenced this pull request Aug 22, 2022
…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).
spacekookie pushed a commit to spacekookie/home-manager that referenced this pull request Feb 10, 2023
…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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants