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
This commit is contained in:
parent
9744f3ebb6
commit
fe7e03d00f
|
@ -67,7 +67,8 @@ command to execute inside the terminal, and its arguments')
|
||||||
dest='working_directory', help='Set the working directory')
|
dest='working_directory', help='Set the working directory')
|
||||||
parser.add_option('-r', '--role', dest='role', help='Set a custom \
|
parser.add_option('-r', '--role', dest='role', help='Set a custom \
|
||||||
WM_WINDOW_ROLE property on the window')
|
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',
|
parser.add_option(item, dest='dummy', action='store',
|
||||||
help=SUPPRESS_HELP)
|
help=SUPPRESS_HELP)
|
||||||
|
|
||||||
|
@ -93,6 +94,15 @@ WM_WINDOW_ROLE property on the window')
|
||||||
if options.maximise:
|
if options.maximise:
|
||||||
configobj['maximise'] = True
|
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
|
# FIXME: Map all the other bits of options to configobj
|
||||||
|
|
||||||
if util.DEBUG == True:
|
if util.DEBUG == True:
|
||||||
|
|
Loading…
Reference in New Issue