diff --git a/usr/share/blackbox/Settings.py b/usr/share/blackbox/Settings.py index 41205b7..7161ff8 100644 --- a/usr/share/blackbox/Settings.py +++ b/usr/share/blackbox/Settings.py @@ -7,14 +7,14 @@ from string import Template base_dir = os.path.dirname(os.path.realpath(__file__)) -default_file = "%s/defaults/blackbox.yaml" +default_file = "%s/defaults/blackbox.yaml" % base_dir class Settings(object): def __init__(self, display_versions, display_package_progress): self.display_versions = display_versions self.display_package_progress = display_package_progress - def write_cofig_file(self): + def write_config_file(self): try: content = [] with open(fn.config_file, "r", encoding="UTF-8") as f: diff --git a/usr/share/blackbox/blackbox.py b/usr/share/blackbox/blackbox.py index d2b7604..48cb54c 100644 --- a/usr/share/blackbox/blackbox.py +++ b/usr/share/blackbox/blackbox.py @@ -49,7 +49,7 @@ class Main(Gtk.Window): self.set_icon_from_file(os.path.join(base_dir, "images/blackbox.png")) self.set_default_size(1280, 720) # Basic Con # let's give a focus on search entry * set "ctrl + f" - self.connect("key-press-event", self.key_press_event) + self.connect("key-press-event", self.on_keypress_event) self.timeout_id = None self.display_versions = False # Bool self.search_activated = False @@ -143,7 +143,7 @@ class Main(Gtk.Window): installed_lst_file = "%s/cache/installed.lst" % base_dir packages_app_start_file = "%s/%s-packages.txt" % ( fn.log_dir, - fn.datetime.now().strftime("%Y-%m-%d-%H-%M-%S") + fn.datetime.now().strftime("%Y-%m-%d-%H-%M-%S"), ) if os.path.exists(installed_lst_file): fn.logger.info( diff --git a/usr/share/blackbox/images/splash.png b/usr/share/blackbox/images/splash.png new file mode 100644 index 0000000..910da9b Binary files /dev/null and b/usr/share/blackbox/images/splash.png differ diff --git a/usr/share/blackbox/ui/GUI.py b/usr/share/blackbox/ui/GUI.py index fbf48be..ddb9bf7 100644 --- a/usr/share/blackbox/ui/GUI.py +++ b/usr/share/blackbox/ui/GUI.py @@ -34,7 +34,7 @@ class GUI_Worker(Thread): ) except Exception as e: - fn.logger.error("Exception in LOC11: %s" % e) + fn.logger.error("Exception on run(): %s" % e) finally: if items is None: fn.logger.debug("Stopping GUI Worker thread")