Skip to content

Commit

Permalink
display-manager: fix argument handling of sddm
Browse files Browse the repository at this point in the history
previously session type was not correctly set.

fixes #23264

(cherry picked from commit 6b7c5ba)
  • Loading branch information
Mic92 committed Apr 17, 2017
1 parent 452f64c commit 40a5498
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nixos/modules/services/x11/display-managers/default.nix
Expand Up @@ -32,8 +32,14 @@ let
''
#! ${pkgs.bash}/bin/bash
# Handle being called by SDDM.
if test "''${1:0:1}" = / ; then eval exec $1 $2 ; fi
# 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
${optionalString cfg.displayManager.logToJournal ''
if [ -z "$_DID_SYSTEMD_CAT" ]; then
Expand Down

0 comments on commit 40a5498

Please sign in to comment.