diff options
author | Matt Wilson <msw@redhat.com> | 1999-07-06 18:31:20 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-07-06 18:31:20 +0000 |
commit | 6716a7df76aa65a0b2230fac7b475b0e98177580 (patch) | |
tree | 9383ad8010542b03f436be4f1d42c5238c185dae /anaconda | |
parent | 766ecd60592f12133a64dbab20b63dda76fe129f (diff) | |
download | anaconda-6716a7df76aa65a0b2230fac7b475b0e98177580.tar.gz anaconda-6716a7df76aa65a0b2230fac7b475b0e98177580.tar.xz anaconda-6716a7df76aa65a0b2230fac7b475b0e98177580.zip |
this is how we're doing i18n bindings
Diffstat (limited to 'anaconda')
-rwxr-xr-x | anaconda | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -1,6 +1,9 @@ #!/usr/bin/python import sys, getopt, os +import lang + +_=lang.gettext # fixme - first stage install passes --method (args, extra) = getopt.getopt(sys.argv[1:], 'p:gTtdr:f', @@ -37,7 +40,7 @@ if (debug): pdb.set_trace() if (not test and not localInstall and os.getpid() > 50): - print "you're running me on a live system! that's incredibly stupid." + print _("you're running me on a live system! that's incredibly stupid.") sys.exit(1) if (os.path.exists('rpmmodule')): @@ -60,11 +63,19 @@ from todo import ToDo import isys if (mode == 'g' and not os.environ.has_key('DISPLAY')): - os.environ['DISPLAY'] = ':0' + os.environ['DISPLAY'] = ':1' + serverPath = None + + try: + f = open('/dev/fb0', 'r') + f.close() + serverPath = '/usr/X11R6/bin/XF86_FBDev' + except: + serverPath = '/usr/X11R6/bin/XF86_VGA16' + server = os.fork() if (not server): - os.execv('/usr/X11R6/bin/XF86_VGA16', ['/usr/X11R6/bin/XF86_VGA16', - '-xf86config', + os.execv(serverPath, [serverPath, ':1', '-xf86config', imagepath + '/RedHat/instimage/etc/X11/XF86Config']) child = os.fork() if (child): |