From 7e2ea4df32a50f04b166c84b358c6a4833ff5464 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 12 Aug 2011 10:04:43 +0000 Subject: [PATCH] * Xsession script: set the current directory to $HOME. svn path=/nixos/trunk/; revision=28511 --- modules/services/x11/display-managers/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/services/x11/display-managers/default.nix b/modules/services/x11/display-managers/default.nix index 47743d436a5..6308ff0f5bb 100644 --- a/modules/services/x11/display-managers/default.nix +++ b/modules/services/x11/display-managers/default.nix @@ -21,6 +21,8 @@ let '' #! /bin/sh + cd "$HOME" + # The first argument of this script is the session type. sessionType="$1" if [ "$sessionType" = default ]; then sessionType=""; fi