From d8dc60a1a2c0bc2f953f698d76c4231ecdda69f0 Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Fri, 19 Apr 2024 02:41:44 +0530 Subject: [PATCH] =?UTF-8?q?=E2=8F=B3=20@eshanized=20updated=20the=20reposi?= =?UTF-8?q?tory!!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/share/blackbox/Functions.py | 10 +++++----- usr/share/blackbox/blackbox.py | 4 ++-- usr/share/blackbox/splash.py | 30 ------------------------------ 3 files changed, 7 insertions(+), 37 deletions(-) delete mode 100644 usr/share/blackbox/splash.py diff --git a/usr/share/blackbox/Functions.py b/usr/share/blackbox/Functions.py index 2fba411..5b2921f 100644 --- a/usr/share/blackbox/Functions.py +++ b/usr/share/blackbox/Functions.py @@ -38,8 +38,8 @@ home = "/home/" + str(sudo_username) path_dir_cache = base_dir + "/cache/" packages = [] distr = id() -sofirem_lockfile = "/tmp/sofirem.lock" -sofirem_pidfile = "/tmp/sofirem.pid" +blackbox_lockfile = "/tmp/blackbox.lock" +blackbox_pidfile = "/tmp/blackbox.pid" # 10m timeout process_timeout = 600 @@ -75,9 +75,9 @@ arco_xlrepo = [ ] -log_dir = "/var/log/sofirem/" -config_dir = "%s/.config/sofirem" % home -config_file = "%s/sofirem.yaml" % config_dir +log_dir = "/var/log/blackbox/" +config_dir = "%s/.config/blackbox" % home +config_file = "%s/blackbox.yaml" % config_dir event_log_file = "%s/event.log" % log_dir diff --git a/usr/share/blackbox/blackbox.py b/usr/share/blackbox/blackbox.py index 6ae8484..dc0eb22 100644 --- a/usr/share/blackbox/blackbox.py +++ b/usr/share/blackbox/blackbox.py @@ -67,12 +67,12 @@ class Main(Gtk.Window): def __init__(self): try: - super(Main, self).__init__(title="Sofirem") + super(Main, self).__init__(title="BLACKBOX") self.set_border_width(10) self.connect("delete-event", self.on_close) self.set_position(Gtk.WindowPosition.CENTER) - self.set_icon_from_file(os.path.join(base_dir, "images/sofirem.png")) + self.set_icon_from_file(os.path.join(base_dir, "images/snigdhaos-blackbox.png")) self.set_default_size(1100, 900) # ctrl+f give focus to search entry diff --git a/usr/share/blackbox/splash.py b/usr/share/blackbox/splash.py deleted file mode 100644 index 9ae550e..0000000 --- a/usr/share/blackbox/splash.py +++ /dev/null @@ -1,30 +0,0 @@ - -import gi -import functions as fn - -gi.require_version("Gtk", "3.0") -from gi.repository import Gtk, GdkPixbuf - -base_dir = fn.path.dirname(fn.path.realpath(__file__)) - - -class splashScreen(Gtk.Window): - def __init__(self): - Gtk.Window.__init__(self, Gtk.WindowType.POPUP, title="") - self.set_decorated(False) - self.set_resizable(False) - self.set_size_request(500, 250) - self.set_position(Gtk.WindowPosition.CENTER) - - main_vbox = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=1) - self.add(main_vbox) - - self.image = Gtk.Image() - pimage = GdkPixbuf.Pixbuf().new_from_file_at_size( - base_dir + "/images/snigdhaos-splash.png", 600, 400 - ) - self.image.set_from_pixbuf(pimage) - - main_vbox.pack_start(self.image, True, True, 0) - - self.show_all() \ No newline at end of file