mirror of
https://github.com/Snigdha-OS/snigdhaos-blackbox.git
synced 2025-09-21 20:15:02 +02:00
⏳ @eshanized updated the repository!!!
This commit is contained in:
@@ -17,7 +17,7 @@ class Settings(object):
|
|||||||
def write_config_file(self):
|
def write_config_file(self):
|
||||||
try:
|
try:
|
||||||
content = []
|
content = []
|
||||||
with open(fn.config_file, "r", encoding="UTF-8") as f:
|
with open(fn.config_file, "r", encoding="utf-8") as f:
|
||||||
contents = f.readlines()
|
contents = f.readlines()
|
||||||
if len(contents) > 0:
|
if len(contents) > 0:
|
||||||
self.read(contents)
|
self.read(contents)
|
||||||
@@ -66,7 +66,7 @@ class Settings(object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if len(contents) > 0:
|
if len(contents) > 0:
|
||||||
with open(fn.config_file, "w", encoding="UTF-8") as f:
|
with open(fn.config_file, "w", encoding="utf-8") as f:
|
||||||
f.writelines(contents)
|
f.writelines(contents)
|
||||||
fn.permissions(fn.config_dir)
|
fn.permissions(fn.config_dir)
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ class Settings(object):
|
|||||||
try:
|
try:
|
||||||
if os.path.exists(fn.config_file):
|
if os.path.exists(fn.config_file):
|
||||||
contents = []
|
contents = []
|
||||||
with open(fn.config_file, "r", encoding="UTF-8") as f:
|
with open(fn.config_file, "r", encoding="utf-8") as f:
|
||||||
contents = f.readlines()
|
contents = f.readlines()
|
||||||
if len(contents) == 0:
|
if len(contents) == 0:
|
||||||
fn.shutil.copy(default_file, fn.config_file)
|
fn.shutil.copy(default_file, fn.config_file)
|
||||||
@@ -88,7 +88,7 @@ class Settings(object):
|
|||||||
# NOTE: String Replaces the Template File
|
# NOTE: String Replaces the Template File
|
||||||
fn.shutil.copy(default_file, fn.config_file)
|
fn.shutil.copy(default_file, fn.config_file)
|
||||||
fn.permissions(fn.config_dir)
|
fn.permissions(fn.config_dir)
|
||||||
with open(fn.config_file, "r", encoding="UTF-8") as f:
|
with open(fn.config_file, "r", encoding="utf-8") as f:
|
||||||
contents = f.readlines()
|
contents = f.readlines()
|
||||||
return self.read(contents)
|
return self.read(contents)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
BIN
usr/share/blackbox/images/panel.png
Normal file
BIN
usr/share/blackbox/images/panel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
Reference in New Issue
Block a user