[-] Remove ascii_len and ascii_lines env variables

This commit is contained in:
Hykilpikonna 2022-12-10 20:32:58 -05:00
parent 7e0b0d7212
commit 2ca7103f1a
No known key found for this signature in database
GPG key ID: 256CD01A41D7FA26

View file

@ -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')