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.
[ x] Does this issue still occur in the master branch? (Required if issue)
Yes, it occurs in the last version
Neofetch version
7.1.0
Ubuntu 22.04.01
Linux kernel 5.19.0-35-generic
Screenshot
Config file
Verbose log
Run neofetch -vv 2> neofetchlog
Upload the contents of neofetchlog to pastebin, gist or equivalent.
Description
Today I was trying to display a
.png
image usingneofetch
. 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
Config file
Verbose log
neofetch -vv 2> neofetchlog
neofetchlog
to pastebin, gist or equivalent.Log here in a gist