From 27f2c83a4e7142cf1e28c9e0c4efbfb00864910c Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Tue, 23 Apr 2024 12:14:02 +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 --- blackbox/Functions.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/blackbox/Functions.py b/blackbox/Functions.py index 8e53ab8..88a4aa1 100644 --- a/blackbox/Functions.py +++ b/blackbox/Functions.py @@ -1 +1,23 @@ -#!/bin/python \ No newline at end of file +#!/bin/python + +import os +import gi + +gi.require_version("Gtk" "3.0") # GTK 2.0 is dead! +from gi.repository import GLib, Gtk + +# NOTE: Base Directory +base_dir = os.path.dirname(os.path.realpath(__file__)) + +# NOTE: Global Variables +sudo_username = os.getlogin() +home = "/home/" + str(sudo_username) +path_dir_cache = base_dir + "/cache/" +packages = [] +distr = id() +blackbox_lockfile = "/tmp/blackbox.lock" +blackbox_pidfile = "/tmp/blackbox.pid" +process_timeout = 300 # NOTE: process time out has been set to 5 mins. +snigdhaos_mirrorlist = "/etc/pacman.d/snigdhaos-mirrorlist" +pacman_conf = "/etc/pacman.conf" +pacman_conf_backup = "/etc/pacman.conf.bak" # NOTE: Bak stands for backup