summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-07-12 21:14:44 +0000
committerMatt Wilson <msw@redhat.com>1999-07-12 21:14:44 +0000
commitcd979b108acf532b70c41aa431215556ed1e75ae (patch)
treeafd945f55845b9638c011778112fdfbeff34c4c0 /anaconda
parentf5a17283dd72cf749fe74e342ca4d1b8ca87ceb7 (diff)
downloadanaconda-cd979b108acf532b70c41aa431215556ed1e75ae.tar.gz
anaconda-cd979b108acf532b70c41aa431215556ed1e75ae.tar.xz
anaconda-cd979b108acf532b70c41aa431215556ed1e75ae.zip
remove arguments from argv so gnome doesn't bitch
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda8
1 files changed, 6 insertions, 2 deletions
diff --git a/anaconda b/anaconda
index 85cffce06..8a8b27940 100755
--- a/anaconda
+++ b/anaconda
@@ -5,10 +5,14 @@ import lang
_=lang.gettext
-# fixme - first stage install passes --method
(args, extra) = getopt.getopt(sys.argv[1:], 'p:GTtdr:f',
[ 'gui', 'text', 'test', 'debug', 'rootpath=',
- 'testpath=', 'mountfs', 'method' ])
+ 'testpath=', 'mountfs' ])
+
+# remove the arguments - gnome_init doesn't understand them
+for arg in sys.argv[1:]:
+ sys.argv.remove (arg)
+sys.argc = 1
mode = None
test = 0