FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Marketing

 
 
LinkBack Thread Tools
 
Old 04-19-2010, 02:12 PM
Ales Kozumplik
 
Default Introduce flags.preexisting_x11.

This way one can always determine whether it was us or somebody else who
started the X server and so whether the X11 is forwarded or if we run the
standard graphical installation.
---
anaconda | 6 ++++--
flags.py | 1 +
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/anaconda b/anaconda
index f781cd6..33607af 100755
--- a/anaconda
+++ b/anaconda
@@ -1044,6 +1044,8 @@ if __name__ == "__main__":
if iutil.memInstalled() < isys.MIN_GUI_RAM:
flags.vncquestion = False

+ if os.environ.has_key('DISPLAY'):
+ flags.preexisting_x11 = True

if anaconda.displayMode == 't' and flags.vncquestion: #we prefer vnc over text mode, so ask about that
title = _("Would you like to use VNC?")
@@ -1080,7 +1082,7 @@ if __name__ == "__main__":

# s390/iSeries checks
if anaconda.isHeadless and anaconda.displayMode == "g" and not
- (os.environ.has_key("DISPLAY") or flags.usevnc):
+ (flags.preexisting_x11 or flags.usevnc):
stdoutLog.warning(_("DISPLAY variable not set. Starting text mode."))
anaconda.displayMode = 't'
graphical_failed = 1
@@ -1088,7 +1090,7 @@ if __name__ == "__main__":

# if DISPLAY not set either vnc server failed to start or we're not
# running on a redirected X display, so start local X server
- if anaconda.displayMode == 'g' and not os.environ.has_key('DISPLAY') and not flags.usevnc:
+ if anaconda.displayMode == 'g' and not flags.preexisting_x11 and not flags.usevnc:
try:
# The following code depends on no SIGCHLD being delivered, possibly
# only except the one from a failing X.org. Thus make sure before
diff --git a/flags.py b/flags.py
index e5e08aa..af6216c 100644
--- a/flags.py
+++ b/flags.py
@@ -92,6 +92,7 @@ class Flags:
self.__dict__['flags']['useIPv4'] = True
self.__dict__['flags']['useIPv6'] = True
self.__dict__['flags']['sshd'] = 0
+ self.__dict__['flags']['preexisting_x11'] = False
# for non-physical consoles like some ppc and sgi altix,
# we need to preserve the console device and not try to
# do things like bogl on them. this preserves what that
--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 04-19-2010, 03:06 PM
Hans de Goede
 
Default Introduce flags.preexisting_x11.

Ack for both.

On 04/19/2010 04:12 PM, Ales Kozumplik wrote:

This way one can always determine whether it was us or somebody else who
started the X server and so whether the X11 is forwarded or if we run the
standard graphical installation.
---
anaconda | 6 ++++--
flags.py | 1 +
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/anaconda b/anaconda
index f781cd6..33607af 100755
--- a/anaconda
+++ b/anaconda
@@ -1044,6 +1044,8 @@ if __name__ == "__main__":
if iutil.memInstalled()< isys.MIN_GUI_RAM:
flags.vncquestion = False

+ if os.environ.has_key('DISPLAY'):
+ flags.preexisting_x11 = True

if anaconda.displayMode == 't' and flags.vncquestion: #we prefer vnc over text mode, so ask about that
title = _("Would you like to use VNC?")
@@ -1080,7 +1082,7 @@ if __name__ == "__main__":

# s390/iSeries checks
if anaconda.isHeadless and anaconda.displayMode == "g" and not
- (os.environ.has_key("DISPLAY") or flags.usevnc):
+ (flags.preexisting_x11 or flags.usevnc):
stdoutLog.warning(_("DISPLAY variable not set. Starting text mode."))
anaconda.displayMode = 't'
graphical_failed = 1
@@ -1088,7 +1090,7 @@ if __name__ == "__main__":

# if DISPLAY not set either vnc server failed to start or we're not
# running on a redirected X display, so start local X server
- if anaconda.displayMode == 'g' and not os.environ.has_key('DISPLAY') and not flags.usevnc:
+ if anaconda.displayMode == 'g' and not flags.preexisting_x11 and not flags.usevnc:
try:
# The following code depends on no SIGCHLD being delivered, possibly
# only except the one from a failing X.org. Thus make sure before
diff --git a/flags.py b/flags.py
index e5e08aa..af6216c 100644
--- a/flags.py
+++ b/flags.py
@@ -92,6 +92,7 @@ class Flags:
self.__dict__['flags']['useIPv4'] = True
self.__dict__['flags']['useIPv6'] = True
self.__dict__['flags']['sshd'] = 0
+ self.__dict__['flags']['preexisting_x11'] = False
# for non-physical consoles like some ppc and sgi altix,
# we need to preserve the console device and not try to
# do things like bogl on them. this preserves what that


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-21-2011, 08:40 PM
Chris Lumens
 
Default Introduce flags.preexisting_x11.

From: Ales Kozumplik <akozumpl@redhat.com>

This way one can always determine whether it was us or somebody else who
started the X server and so whether the X11 is forwarded or if we run the
standard graphical installation.

Related: rhbz#663411
---
anaconda | 7 ++++---
flags.py | 1 +
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/anaconda b/anaconda
index 187600e..2c16e36 100755
--- a/anaconda
+++ b/anaconda
@@ -894,6 +894,8 @@ if __name__ == "__main__":
if iutil.memInstalled() < isys.MIN_GUI_RAM:
flags.vncquestion = False

+ if os.environ.has_key('DISPLAY'):
+ flags.preexisting_x11 = True

if opts.display_mode == 't' and flags.vncquestion: #we prefer vnc over text mode, so ask about that
title = _("Would you like to use VNC?")
@@ -950,8 +952,7 @@ if __name__ == "__main__":
opts.display_mode = 't'

if opts.isHeadless: # s390/iSeries checks
- if opts.display_mode == 'g' and not (os.environ.has_key('DISPLAY') or
- flags.usevnc):
+ if opts.display_mode == 'g' and not (flags.preexisting_x11 or flags.usevnc):
stdoutLog.warning(_("DISPLAY variable not set. Starting text mode."))
opts.display_mode = 't'
graphical_failed = 1
@@ -959,7 +960,7 @@ if __name__ == "__main__":

# if DISPLAY not set either vnc server failed to start or we're not
# running on a redirected X display, so start local X server
- if opts.display_mode == 'g' and not os.environ.has_key('DISPLAY') and not flags.usevnc:
+ if opts.display_mode == 'g' and not flags.preexisting_x11 and not flags.usevnc:
try:
# The following code depends on no SIGCHLD being delivered, possibly
# only except the one from a failing X.org. Thus make sure before
diff --git a/flags.py b/flags.py
index dbe5fae..702a30d 100644
--- a/flags.py
+++ b/flags.py
@@ -93,6 +93,7 @@ class Flags:
self.__dict__['flags']['useIPv6'] = True
self.__dict__['flags']['sshd'] = 0
self.__dict__['flags']['noverifyssl'] = False
+ self.__dict__['flags']['preexisting_x11'] = False
# for non-physical consoles like some ppc and sgi altix,
# we need to preserve the console device and not try to
# do things like bogl on them. this preserves what that
--
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 06:38 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org