From 7ff71273d409de53c728921de5c144ec432d2bf5 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 17 Jun 2008 01:58:41 +0100 Subject: [PATCH] Add a warning about terminatorrc moving --- terminator | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/terminator b/terminator index a40cc020..400e0f42 100755 --- a/terminator +++ b/terminator @@ -1413,8 +1413,7 @@ class Terminator: grandparent.set_tab_label_packing(sibling, True, True, gtk.PACK_START) grandparent.set_tab_reorderable(sibling, True) grandparent.set_current_page(page) - - + else: grandparent.remove (parent) sibling.reparent (grandparent) @@ -1743,6 +1742,29 @@ if __name__ == '__main__': "Make sure DISPLAY is properly set")) sys.exit(1) + try: + open (os.path.expanduser ('~/.config/terminator/config')) + except: + try: + open (os.path.expanduser ('~/.terminatorrc')) + error = gtk.MessageDialog (None, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, + ('''You have a configuration file: + + ~/.terminatorrc. + +Please be aware that this file needs to be moved to: + + ~/.config/terminator/config. + +See the following bug report for more details: + + https://bugs.launchpad.net/bugs/238070''')) + error.run () + error.destroy () + + except: + pass + print 'profile_cb: settled on profile: "%s"'%options.profile term = Terminator (options.profile, command, options.fullscreen, options.maximise, options.borderless)