From fe7e03d00f0a46f5d93730651777e165e2cec74e Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 5 Jan 2010 12:51:53 +0000 Subject: [PATCH] Add some old command line options as dummies, and make some command line options influence the config object. This is probably a poor long-term strategy as it means supplying command line options and saving the config will cause the command line options to be baked into the config --- terminatorlib/optionparse.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/terminatorlib/optionparse.py b/terminatorlib/optionparse.py index 3f213545..0e33a0a8 100755 --- a/terminatorlib/optionparse.py +++ b/terminatorlib/optionparse.py @@ -67,7 +67,8 @@ command to execute inside the terminal, and its arguments') dest='working_directory', help='Set the working directory') parser.add_option('-r', '--role', dest='role', help='Set a custom \ WM_WINDOW_ROLE property on the window') - for item in ['--sm-client-id', '--sm-config-prefix', '--screen']: + for item in ['--sm-client-id', '--sm-config-prefix', '--screen', '-n', + '--no-gconf', '-p', '--profile' ]: parser.add_option(item, dest='dummy', action='store', help=SUPPRESS_HELP) @@ -93,6 +94,15 @@ WM_WINDOW_ROLE property on the window') if options.maximise: configobj['maximise'] = True + if options.fullscreen: + configobj['fullscreen'] = True + + if options.borderless: + configobj['borderless'] = True + + if options.hidden: + configobj['hidden'] = True + # FIXME: Map all the other bits of options to configobj if util.DEBUG == True: