summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmdm/src/create-xorg-conf2
-rwxr-xr-xmdm/src/mdm-start-seat2
2 files changed, 2 insertions, 2 deletions
diff --git a/mdm/src/create-xorg-conf b/mdm/src/create-xorg-conf
index ebdb84e..5f74c55 100755
--- a/mdm/src/create-xorg-conf
+++ b/mdm/src/create-xorg-conf
@@ -134,7 +134,7 @@ fi
if [ -f "$XRANDR_INFO_FILE" ]; then
WIDTH_MULTIPLIER=`grep -A1 ":0.$((i-1))" $XRANDR_INFO_FILE |
- tail -1 | cut -d'=' -f2`
+ tail -n 1 | cut -d'=' -f2`
# If $WIDTH_MULTIPLIER=0, set it as 1 (for configuring at least one screen)
WIDTH_MULTIPLIER=${WIDTH_MULTIPLIER/0/1}
fi
diff --git a/mdm/src/mdm-start-seat b/mdm/src/mdm-start-seat
index e7a9f1b..a1968d2 100755
--- a/mdm/src/mdm-start-seat
+++ b/mdm/src/mdm-start-seat
@@ -247,7 +247,7 @@ KEYBOARD=
MOUSE=
SEAT_WINDOW_ID=
SCREEN_X_ORIGIN=($(grep -A4 $DISPLAY $XRANDR_INFO_FILE |
- tail -1 | cut -d'=' -f2))
+ tail -n 1 | cut -d'=' -f2))
# XXX: In case $SCREEN_X_ORIGIN has only one value, and SEAT_DISPLAY is odd,
# the open_seat_parent_window given parameter would be empty