From 5eba5c77514651d4755b6184bcf4dcb74ea48818 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 20 Apr 2010 12:30:43 +0100 Subject: [PATCH] Actually set a profile if it's specified in a layout --- terminatorlib/terminal.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index c2a7d5b7..a6d1f3cb 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1291,6 +1291,9 @@ for %s (%s)' % (name, urlplugin.__class__.__name__)) """Apply our layout""" if layout.has_key('command') and layout['command'] != '': self.layout_command = layout['command'] + if layout.has_key('profile') and layout['profile'] != '': + if layout['profile'] in self.config.list_profiles(): + self.set_profile(self, layout['profile']) if layout.has_key('group') and layout['group'] != '': # This doesn't need/use self.titlebar, but it's safer than sending # None