From 893ccd0f6a917effc0d2456a43af3ecfe00f4397 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 31 Aug 2007 20:33:39 +0100 Subject: [PATCH] Flesh out --help. Detect if the specified profile doesn't exist --- terminator | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/terminator b/terminator index 9489bd81..bb3e87f2 100755 --- a/terminator +++ b/terminator @@ -75,6 +75,11 @@ class TerminatorTerm: self.profile = self.defaults['profile_dir'] + profile self.gconf_client = gconf.client_get_default () + + if not self.gconf_client.dir_exists (self.profile): + print "Error, unable to find profile " + profile + sys.exit (2) + self.gconf_client.add_dir (self.profile, gconf.CLIENT_PRELOAD_RECURSIVE) self.gconf_client.add_dir ('/apps/metacity/general', gconf.CLIENT_PRELOAD_RECURSIVE) @@ -444,7 +449,13 @@ class Terminator: return True def usage (): - print "Read a manual or something" + print """Terminator by Chris Jones