dylanaraps / neofetch

🖼️ A command-line system information tool written in bash 3.2+
MIT License
21.88k stars 1.76k forks source link

`DISPLAY` with the string `:0` inside of the variable #2304

Open AleixMT opened 1 year ago

AleixMT commented 1 year ago

Description

Today I was trying to display a .png image using neofetch. I was using this command: neofetch --jp2a --source logo.png. At first the image was not being displayed but it was because neofetch was not able to detect the window size.

To fix it what I did was declare and export the variable DISPLAY with the string :0 inside of the variable. After that it worked.

I was wondering if this is a bug or at least it is a situation that could be taken into account when executing neofetch, so it could try to declare this variable if it is not present in order to avoid this failure.

Maybe this "quirk" is a thing that is out of scope, but if it is not I will happily raise a PR to propose a fix.

Neofetch version

7.1.0

Ubuntu 22.04.01 Linux kernel 5.19.0-35-generic

Screenshot

image

Config file

Verbose log

  1. Run neofetch -vv 2> neofetchlog
  2. Upload the contents of neofetchlog to pastebin, gist or equivalent.

Log here in a gist