diff --git a/terminatorlib/config.py b/terminatorlib/config.py
index b0888a71..75e65328 100644
--- a/terminatorlib/config.py
+++ b/terminatorlib/config.py
@@ -76,7 +76,7 @@
from configobj import ConfigObj, flatten_errors
from validate import Validator
from .borg import Borg
-from .util import dbg, err, DEBUG, get_system_config_dir, get_config_dir, dict_diff
+from .util import dbg, err, DEBUG, get_system_config_dir, get_config_dir, dict_diff, update_config_to_cell_height
from gi.repository import Gio
@@ -113,7 +113,8 @@
'disable_mouse_paste' : False,
'smart_copy' : True,
'clear_select_on_copy' : False,
- 'line_height' : 1.0,
+ 'cell_height' : 1.0,
+ 'cell_width' : 1.0,
'case_sensitive' : True,
'invert_search' : False,
'link_single_click' : False,
@@ -244,7 +245,8 @@
'use_system_font' : True,
'use_theme_colors' : False,
'bold_is_bright' : False,
- 'line_height' : 1.0,
+ 'cell_height' : 1.0,
+ 'cell_width' : 1.0,
'focus_on_close' : 'auto',
'force_no_bell' : False,
'cycle_term_tab' : True,
@@ -507,6 +509,7 @@ class ConfigBase(Borg):
plugins = None
layouts = None
command_line_options = None
+ config_file_updated_to_cell_height = False
def __init__(self):
"""Class initialiser"""
@@ -626,6 +629,14 @@ def load(self):
filename = os.path.join(get_system_config_dir(), 'config')
dbg('looking for config file: %s' % filename)
try:
+ #
+ # Make sure we attempt to update the ‘cell_height’ config
+ # only once when starting a new instance of Terminator.
+ #
+ if not self.config_file_updated_to_cell_height:
+ update_config_to_cell_height(filename)
+ self.config_file_updated_to_cell_height = True
+
configfile = open(filename, 'r')
except Exception as ex:
if not self.whined:
diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade
index 2c73f5e5..6719c89d 100644
--- a/terminatorlib/preferences.glade
+++ b/terminatorlib/preferences.glade
@@ -340,7 +340,14 @@
0.10
0.20
-