1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 10:49:48 +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:
polykernel 2022-03-20 20:12:03 -04:00 committed by GitHub
parent 46dc2e5d9f
commit 835797f3a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,6 +36,10 @@ let
}; };
}; };
cursorPath = "${cfg.package}/share/icons/${escapeShellArg cfg.name}/cursors/${
escapeShellArg cfg.defaultCursor
}";
in { in {
meta.maintainers = [ maintainers.league ]; meta.maintainers = [ maintainers.league ];
@ -63,9 +67,7 @@ in {
home.packages = [ cfg.package ]; home.packages = [ cfg.package ];
xsession.initExtra = '' xsession.initExtra = ''
${pkgs.xorg.xsetroot}/bin/xsetroot -xcf ${cfg.package}/share/icons/${cfg.name}/cursors/${cfg.defaultCursor} ${ ${pkgs.xorg.xsetroot}/bin/xsetroot -xcf ${cursorPath} ${toString cfg.size}
toString cfg.size
}
''; '';
xresources.properties = { xresources.properties = {