| author | James Cloos <cloos@jhcloos.com> | 2008-12-24 02:17:29 (GMT) |
|---|---|---|
| committer | James Cloos <cloos@jhcloos.com> | 2008-12-24 02:17:29 (GMT) |
| commit | a28b4d66e88d9ee54ff2fb3eca3126f4ad41df80 (patch) (side-by-side diff) | |
| tree | 65b1d6600ea5bb41bab7523059c51076134f2fbe | |
| parent | 86089e7283035f95f1683525bab5e5eb21baf277 (diff) | |
| download | mdm-master.zip mdm-master.tar.gz | |
| -rwxr-xr-x | mdm/src/create-xorg-conf | 2 | ||||
| -rwxr-xr-x | mdm/src/mdm-start-seat | 2 |
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 |
