mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00: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 {
|
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 = {
|
||||||
|
|
Loading…
Reference in a new issue