From 2ca7103f1a4c47d1d9e99e2d743342fd300011a3 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 10 Dec 2022 20:32:58 -0500 Subject: [PATCH] [-] Remove ascii_len and ascii_lines env variables --- hyfetch/neofetch_util.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hyfetch/neofetch_util.py b/hyfetch/neofetch_util.py index affc5849..5ba96a3e 100644 --- a/hyfetch/neofetch_util.py +++ b/hyfetch/neofetch_util.py @@ -257,7 +257,6 @@ def run_neofetch(preset: ColorProfile, alignment: ColorAlignment): :param alignment: Color alignment settings """ asc = get_distro_ascii() - w, h = ascii_size(asc) asc = alignment.recolor_ascii(asc, preset) # Escape backslashes here because backslashes are escaped in neofetch for printf @@ -270,9 +269,6 @@ def run_neofetch(preset: ColorProfile, alignment: ColorAlignment): path.write_text(asc) # Call neofetch with the temp file - os.environ['ascii_len'] = str(w) - os.environ['ascii_lines'] = str(h) - run_command(f'--ascii --source {path.absolute()} --ascii-colors')