Lines 1-4
Link Here
|
1 |
# Copyright 1999-2018 Gentoo Foundation |
1 |
# Copyright 1999-2019 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
# @ECLASS: virtualx.eclass |
4 |
# @ECLASS: virtualx.eclass |
Lines 178-184
virtx() {
Link Here
|
178 |
# Xvfb is started, else bump the display number |
178 |
# Xvfb is started, else bump the display number |
179 |
# |
179 |
# |
180 |
# Azarah - 5 May 2002 |
180 |
# Azarah - 5 May 2002 |
181 |
XDISPLAY=$(i=0; while [[ -f /tmp/.X${i}-lock ]] ; do ((i++));done; echo ${i}) |
181 |
# GNOME GDM may have started X on DISPLAY :0 with a |
|
|
182 |
# lock file /tmp/.X1024-lock, therefore start the search at 1. |
183 |
# Else a leftover /tmp/.X1-lock will prevent finding an available display. |
184 |
XDISPLAY=$(i=1; while [[ -f /tmp/.X${i}-lock ]] ; do ((i++));done; echo ${i}) |
182 |
debug-print "${FUNCNAME}: XDISPLAY=${XDISPLAY}" |
185 |
debug-print "${FUNCNAME}: XDISPLAY=${XDISPLAY}" |
183 |
|
186 |
|
184 |
# We really do not want SANDBOX enabled here |
187 |
# We really do not want SANDBOX enabled here |
185 |
- |
|
|