Open dotnetCarpenter opened 3 years ago
Any reason why DISPLAY is set?
I need to run a python3 script that uses python3-tk
. I found a Microsoft Tech article about installing VcXsrv Windows X Server and used that approach to get Baseline-JPEG-Decoder working.
There is a newer approach but unfortunately it is Windows 11 only. It's unclear if the newer approach sets DISPLAY
.
Also notice that the speed-up in the first case where $DISPLAY
is unset, is because neofetch
simply does not query for Theme and Icons.
EDIT: It also fetches the GPU (which seems to be a false positive in this case). My actual GPUs are:
Hmmm just a observation that might be useful
After downgrading my GPU 1 driver (AMD), neofetch
became super fast! On second thought - this is the Ubuntu package neofetch
.
$ unset DISPLAY && time neofetch
.-/+oossssoo+/-. dotnet@DESKTOP-NDR7PBQ
`:+ssssssssssssssssss+:` ----------------------
-+ssssssssssssssssssyyssss+- OS: Ubuntu 21.04 on Windows 10 x86_64
.ossssssssssssssssssdMMMNysssso. Kernel: 5.10.16.3-microsoft-standard-WSL2
/ssssssssssshdmmNNmmyNMMMMhssssss/ Uptime: 2 mins
+ssssssssshmydMMMMMMMNddddyssssssss+ Packages: 1768 (dpkg)
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Shell: bash 5.1.4
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Terminal: Windows Terminal
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ CPU: Intel i7-4510U (4) @ 2.593GHz
ossyNMMMNyMMhsssssssssssssshmmmhssssssso GPU: 7021:00:00.0 Microsoft Corporation Device 008e
ossyNMMMNyMMhsssssssssssssshmmmhssssssso Memory: 69MiB / 3931MiB
+sssshhhyNMMNyssssssssssssyNMMMysssssss+
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
+sssssssssdmydMMMMMMMMddddyssssssss+
/ssssssssssshdmNNNNmyNMMMMhssssss/
.ossssssssssssssssssdMMMNysssso.
-+sssssssssssssssssyyyssss+-
`:+ssssssssssssssssss+:`
.-/+oossssoo+/-.
real 0m0.278s
user 0m0.175s
sys 0m0.097s
Note that GPU is now defined whereas it was not before. This version of neofetch
is my Ubuntu 21.04 package, which might explain the speedup.
Package: neofetch
Version: 7.1.0-2
Priority: optional
Section: universe/utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Nobuhiro Iwamatsu <iwamatsu@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 359 kB
Recommends: chafa
Homepage: https://github.com/dylanaraps/neofetch
Task: lubuntu-desktop, ubuntu-mate-core, ubuntu-mate-desktop
Download-Size: 81.3 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
Description
With
$DISPLAY
unset,neofetch
takes around 2 seconds on my machine.With
$DISPLAY
set,neofetch
always takes more than 6 minutes (did 3 test runs).My
DISPLAY
variable below which expands to172.28.16.1:0
(the Windows host's IP address):Neofetch version
Neofetch 7.1.0 - installed via
sudo make install
Screenshot
With
$DISPLAY
unset:With
$DISPLAY
set:Config file
https://gist.github.com/dotnetCarpenter/f118225f18ada0409aa1327672d4cfa6#file-config-conf
Verbose log
https://gist.github.com/dotnetCarpenter/f118225f18ada0409aa1327672d4cfa6#file-neofetchlog-log
neofetch -vv 2> neofetchlog
neofetchlog
to pastebin, gist or equivalent.