From 8bdbb982e82811509bc09df72102da5d3a0bbc79 Mon Sep 17 00:00:00 2001 From: zsxh Date: Fri, 20 Mar 2020 22:40:54 +0800 Subject: [PATCH] Fixed EAF is_dark_mode bool value --- eaf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eaf.py b/eaf.py index fe26bb7..73e1fa4 100755 --- a/eaf.py +++ b/eaf.py @@ -49,6 +49,7 @@ class EAF(dbus.service.Object): (emacs_width, emacs_height, proxy_host, proxy_port, proxy_type, config_dir, var_dict_string, is_dark_mode) = args emacs_width = int(emacs_width) emacs_height = int(emacs_height) + is_dark_mode = is_dark_mode == "true" eaf_config_dir = os.path.expanduser(config_dir) self.buffer_dict = {} @@ -143,7 +144,7 @@ class EAF(dbus.service.Object): # Create application buffer. module = importlib.import_module(module_path) - app_buffer = module.AppBuffer(buffer_id, url, eaf_config_dir, arguments, self.emacs_var_dict, module_path, bool(is_dark_mode)) + app_buffer = module.AppBuffer(buffer_id, url, eaf_config_dir, arguments, self.emacs_var_dict, module_path, is_dark_mode) # Add buffer to buffer dict. self.buffer_dict[buffer_id] = app_buffer @@ -506,6 +507,7 @@ if __name__ == "__main__": import signal proxy_string = "" + is_dark_mode = "" DBusGMainLoop(set_as_default=True) # WARING: only use once in one process