3
0
Fork 0
forked from mirrors/nixpkgs

nixos/x11: Respect XCOMPOSECACHE/XDG_DATA_HOME if set

This commit is contained in:
Stefan Frijters 2020-08-09 23:17:09 +02:00
parent 37460768e2
commit ee713d36bc
No known key found for this signature in database
GPG key ID: 7619A6BC6E7DFA6F

View file

@ -69,12 +69,14 @@ let
# Speed up application start by 50-150ms according to
# http://kdemonkey.blogspot.nl/2008/04/magic-trick.html
rm -rf "$HOME/.compose-cache"
mkdir "$HOME/.compose-cache"
compose_cache="''${XCOMPOSECACHE:-$HOME/.compose-cache}"
rm -rf "$compose_cache"
mkdir -p "$compose_cache"
unset compose_cache
# Work around KDE errors when a user first logs in and
# .local/share doesn't exist yet.
mkdir -p "$HOME/.local/share"
mkdir -p "''${XDG_DATA_HOME:-$HOME/.local/share}"
unset _DID_SYSTEMD_CAT