Skip to content

Commit

Permalink
Revert "display-manager: fix argument handling of sddm"
Browse files Browse the repository at this point in the history
This reverts commit 40a5498.

It breaks slim:

Apr 22 21:04:23 hagbard xsession[1037]: /nix/store/bw00yl4yspl3wlyiwk56bi0hljjr00di-xsession: Window manager '/nix/store/bw00yl4yspl3wlyiwk56bi0hljjr00di-xsession 'xfce'' not found.
Apr 22 21:04:23 hagbard xsession[1037]: /nix/store/bw00yl4yspl3wlyiwk56bi0hljjr00di-xsession: Desktop manager '/nix/store/bw00yl4yspl3wlyiwk56bi0hljjr00di-xsession 'xfce'' not found.

Issue #23264.
  • Loading branch information
edolstra committed Apr 22, 2017
1 parent 4fe9cf7 commit 99dfb6d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions nixos/modules/services/x11/display-managers/default.nix
Expand Up @@ -32,14 +32,8 @@ let
''
#! ${pkgs.bash}/bin/bash
# SDDM splits "Exec" line in .desktop file by whitespace and pass script path as $1
if [[ "$0" = "$1" ]]; then
# remove superfluous $1 again
shift
# join arguments again and evaluate them in a shell context
# to interpret shell quoting
eval exec "$0" "$@"
fi
# 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
Expand Down

0 comments on commit 99dfb6d

Please sign in to comment.