From 1b728846a827bcba08ede7ef29d02227b3ab2c7f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 28 Sep 2015 15:14:44 +0200 Subject: Shut up a KDE warning when a user first logs in It was complaining about not having write permission to $HOME/.local/share/user-places.xbel (because .local/share didn't exist yet). --- nixos/modules/services/x11/display-managers/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nixos') diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix index fc0803f2acaf..ca0832e5b0c8 100644 --- a/nixos/modules/services/x11/display-managers/default.nix +++ b/nixos/modules/services/x11/display-managers/default.nix @@ -114,6 +114,10 @@ let rm -rf $HOME/.compose-cache mkdir $HOME/.compose-cache + # Work around KDE errors when a user first logs in and + # .local/share doesn't exist yet. + mkdir -p $HOME/.local/share + ${cfg.displayManager.sessionCommands} # Allow the user to execute commands at the beginning of the X session. -- cgit 1.4.1