diff options
-rw-r--r-- | perl-install/standalone/drakedm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/standalone/drakedm b/perl-install/standalone/drakedm index 92dadaff5..32d4e03de 100644 --- a/perl-install/standalone/drakedm +++ b/perl-install/standalone/drakedm @@ -50,7 +50,8 @@ several different X sessions on your local machine at the same time.")), $new_dm = { reverse %dm }->{$new_dm}; substInFile { s/^(DISPLAYMANAGER)=.*(\n|)//; - $_ .= "\nDISPLAYMANAGER=$new_dm" if eof; + s/^\n//g; + $_ .= "\nDISPLAYMANAGER=$new_dm\n" if eof; } $cfg_file; } |