From a23798e4788c093f34df3d6e547ce3be5ce71b69 Mon Sep 17 00:00:00 2001 From: Hugo Geoffroy Date: Sat, 15 Jun 2019 05:22:35 +0200 Subject: nixos/x11: provide selected session to custom session The custom session script is always executed (when it exists). This change passes the selected session script and select session name to the custom session script, so that it can defer to the selected session script based on the value of the selected session name. --- nixos/modules/services/x11/display-managers/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules/services/x11/display-managers/default.nix') diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix index 0e87e6adbab..bf6b048654b 100644 --- a/nixos/modules/services/x11/display-managers/default.nix +++ b/nixos/modules/services/x11/display-managers/default.nix @@ -109,7 +109,7 @@ let # Allow the user to setup a custom session type. if test -x ~/.xsession; then - exec ~/.xsession + eval exec ~/.xsession "$@" fi if test "$1"; then -- cgit 1.4.1