home-manager
home-manager copied to clipboard
Issue: Some apps don't find the cursor icons
Is there an existing issue for this?
- [X] I have searched the existing issues
Issue description
Some apps (at least Firefox) don't find the xcursors, I make it work by setting
XCURSOR_PATH=$HOME/.nix-profile/share/icons and I think that's in fact the solution, but I don't know where to put it in a PR as it (in theory) should work for wayland as well (not only x11).
Maintainer CC
@rycee
System information
- system: `"x86_64-linux"`
- host os: `Linux 5.15.25-1-MANJARO, Manjaro Linux, noversion`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.6.1`
- channels(leiserfg): `"home-manager, nixpkgs"`
- nixpkgs: `/home/leiserfg/.nix-defexpr/channels/nixpkgs`
@polykernel is this something your PR #2891 could fix?
@berbiche Yes, it can but I am unsure on where the variable should be set because there isn't a standard interface for graphic sessions in home-manager. I think it can be set in home.sessionVariables which may not be appropriate depending on the user's graphic session configurations, but as per https://github.com/nix-community/home-manager/issues/1011#issuecomment-850889575 this is the preferred way to manage variables for any login session. What do you think?
I think it can be set in
home.sessionVariableswhich may not be appropriate depending on the user's graphic session configurations
That's the best solution we currently have.
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting.
If you are the original author of the issue
- If this is resolved, please consider closing it so that the maintainers know not to focus on this.
- If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough.
- If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
If you are not the original author of the issue
- If you are also experiencing this issue, please add details of your situation to help with the debugging process.
- If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
Memorandum on closing issues
Don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.
Hi,
I used home.pointercursor and correctly have export XCURSOR_PATH="$XCURSOR_PATH${XCURSOR_PATH:+:}/home/gsaurel/.nix-profile/share/icons" in my .nix-profile/etc/profile.d/hm-session-vars.sh, but eg. firefox & kitty still can't get the cursors on login.
My current workaround is to set ".icons".source = ~/.nix-profile/share/icons; in home.file.
Thanks for the report. I have added a symlink from $HOME/.icons to the home-manager profile icons directory and moved the index.theme file for the default theme in https://github.com/nix-community/home-manager/pull/4281.