Skip to content

Commit

Permalink
remote display - allow setting custom display number (bnc#913888)
Browse files Browse the repository at this point in the history
- 2.17.112
  • Loading branch information
lslezak committed Feb 4, 2015
1 parent 3d5e15d commit 9e8a05d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.17.111
2.17.112
7 changes: 7 additions & 0 deletions package/yast2-installation.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Feb 4 13:15:43 UTC 2015 - lslezak@suse.cz

- support custom display number in "display_ip" boot option
(bnc#913888)
- 2.17.112

-------------------------------------------------------------------
Wed Feb 4 10:41:27 CET 2015 - snwint@suse.de

Expand Down
15 changes: 13 additions & 2 deletions startup/YaST2.call
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,19 @@ fi
# 3.1.7) Check for remote display usage
if [ ! -z $Display_IP ];then
log "\tRemote Display usage -> Medium Qt and Gtk enabled"
log "\tExporting DISPLAY to host: $Display_IP:0.0"
export DISPLAY="$Display_IP:0.0"
# check if a display is defined, check for ":<display>[.<screen>]" suffix
#
# Note: simple ":<display>" suffix works only for IPv4 addresses,
# IPv6 address requires full ":<display>.<screen>" suffix
# because it's not easy to check whether e.g. trailing ":1" is a screen
# number or a part of the IPv6 address
SCREEN_REGEX="(:[0-9]+\.[0-9]+$|^[^:]+:[0-9]+$)"
if [[ $Display_IP =~ $SCREEN_REGEX ]]; then
export DISPLAY="$Display_IP"
else
export DISPLAY="$Display_IP:0.0"
fi
log "\tExporting DISPLAY: $DISPLAY"
NEED_XSERVER=""
MEDIUM[0]=1
MEDIUM[4]=1
Expand Down

0 comments on commit 9e8a05d

Please sign in to comment.