~bobbo/ssherminator/trunk

« back to all changes in this revision

Viewing changes to ssherminator

  • Committer: bobbo at ubuntu
  • Date: 2009-03-29 17:04:42 UTC
  • mfrom: (617.1.98 trunk)
  • Revision ID: bobbo@ubuntu.com-20090329170442-rhcgnpne99x8fk5n
Merge in latest terminator trunk. Bump ssherminator versioning to 0.2.0. Time to get hacking on 0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
      dest="fullscreen", help="Set the window into fullscreen mode")
97
97
  parser.add_option ("-b", "--borderless", action="store_true", 
98
98
      dest="borderless",       help="Turn off the window's borders")
 
99
  parser.add_option("-H", "--hidden", action="store_true", dest="hidden", 
 
100
      help="Open the %s window hidden"%APP_NAME.capitalize())
99
101
  parser.add_option ("-n", "--no-gconf", dest="no_gconf", action="store_true",
100
102
      help="ignore gnome-terminal gconf settings")
101
103
  parser.add_option ("-p", "--profile", dest="profile", action="callback",
107
109
  parser.add_option ("-x", "--execute", dest="execute", action="callback",
108
110
      callback=execute_cb, help="Execute the remainder of the command line \
109
111
inside the terminal")
 
112
  parser.add_option ("--working-directory", metavar="DIR",
 
113
      dest="working_directory", help="Set the terminal's working directory")
110
114
  for item in ['--sm-client-id', '--sm-config-prefix', '--screen']:
111
115
    parser.add_option (item, dest="dummy", action="store", help=SUPPRESS_HELP)
112
116
 
136
140
    "Make sure DISPLAY is properly set"))
137
141
    sys.exit(1)
138
142
 
 
143
  if options.working_directory:
 
144
      if os.path.exists (os.path.expanduser (options.working_directory)):
 
145
        os.chdir (os.path.expanduser (options.working_directory))
 
146
      else:
 
147
        err (_("The working directory you specified does not exist."))
 
148
        sys.exit (1)
 
149
 
139
150
  try:
140
151
    open (os.path.expanduser ('~/.config/terminator/config'))
141
152
  except IOError:
161
172
  dbg ('profile_cb: settled on profile: "%s"' % options.profile)
162
173
  term = Terminator (options.profile, command, options.fullscreen, 
163
174
                     options.maximise, options.borderless, options.no_gconf, 
164
 
                     options.geometry)
 
175
                     options.geometry, options.hidden)
165
176
 
166
177
  if options.debug > 1:
167
178
    import terminatorlib.debugserver as debugserver