The sddm must be handled separately (as with kdm) in the xsession start
script because it treats the Exec line in the .desktop file as a
parameter and not a command, and due to the in the current master
branch sddm cannot start a session. The attached patch fixes this.
>From df142acfa790c339fdba4077e92dc423c814a575 Mon Sep 17 00:00:00 2001
From: Karn Kallio <[email protected]>
Date: Sun, 12 Feb 2017 19:09:24 -0400
Subject: [PATCH] Fix sessions with sddm.
---
nixos/modules/services/x11/display-managers/default.nix | 3 +++
1 file changed, 3 insertions(+)
diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix
index 7418ce5635..e8b897fb60 100644
--- a/nixos/modules/services/x11/display-managers/default.nix
+++ b/nixos/modules/services/x11/display-managers/default.nix
@@ -32,6 +32,9 @@ let
''
#! ${pkgs.bash}/bin/bash
+ # Handle being called by SDDM.
+ if test "''${1:0:1}" = / ; then eval exec $1 $2 ; fi
+
${optionalString cfg.displayManager.logToJournal ''
if [ -z "$_DID_SYSTEMD_CAT" ]; then
_DID_SYSTEMD_CAT=1 exec ${config.systemd.package}/bin/systemd-cat -t xsession -- "$0" "$@"
--
2.11.1
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev