From 1d332c915e95a878f2fcad9df721519a5b755e83 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 2 Sep 2009 11:01:30 +0100 Subject: [PATCH] Only attempt to set an image if there actually is an image configured. Closes LP #404846 --- terminatorlib/terminatorterm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/terminatorterm.py b/terminatorlib/terminatorterm.py index cb4cc8c6..d5ea36f3 100755 --- a/terminatorlib/terminatorterm.py +++ b/terminatorlib/terminatorterm.py @@ -811,7 +811,7 @@ text/plain dbg ('H9TRANS: Configuring background type as: %s' % background_type) # set background image settings - if background_type == "image": + if background_type == "image" and self.conf.background_image is not None and self.conf.background_image != '': dbg ('H9TRANS: Setting background image to: %s' % self.conf.background_image) self._vte.set_background_image_file (self.conf.background_image) dbg ('H9TRANS: Setting background image scroll to: %s' % self.conf.scroll_background)