forked from mirrors/nixpkgs
nixos/x11: Respect XCOMPOSECACHE/XDG_DATA_HOME if set
This commit is contained in:
parent
37460768e2
commit
ee713d36bc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue