mirror of
https://github.com/nix-community/home-manager
synced 2024-11-04 18:29:45 +01:00
xsession.pointerCursor: escape special characters in the cursor path (#2805)
- Escape special character in the cursor name and default cursor file name in the cursor path for the xsetroot command.
This commit is contained in:
parent
46dc2e5d9f
commit
835797f3a4
1 changed files with 5 additions and 3 deletions
|
@ -36,6 +36,10 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
cursorPath = "${cfg.package}/share/icons/${escapeShellArg cfg.name}/cursors/${
|
||||
escapeShellArg cfg.defaultCursor
|
||||
}";
|
||||
|
||||
in {
|
||||
meta.maintainers = [ maintainers.league ];
|
||||
|
||||
|
@ -63,9 +67,7 @@ in {
|
|||
home.packages = [ cfg.package ];
|
||||
|
||||
xsession.initExtra = ''
|
||||
${pkgs.xorg.xsetroot}/bin/xsetroot -xcf ${cfg.package}/share/icons/${cfg.name}/cursors/${cfg.defaultCursor} ${
|
||||
toString cfg.size
|
||||
}
|
||||
${pkgs.xorg.xsetroot}/bin/xsetroot -xcf ${cursorPath} ${toString cfg.size}
|
||||
'';
|
||||
|
||||
xresources.properties = {
|
||||
|
|
Loading…
Reference in a new issue