Open Zzyzx-Wolfe opened 7 years ago
Oh, I also forgot to add, when running screenFetch under Kali Linux, I get the error Property "/Gtk/FontName" does not exist on channel "xsettings".
I wonder if a simple fix would be to change the line that reads
if [[ "${OSTYPE}" == "linux-gnu" || "${OSTYPE}" == "linux" || "${OSTYPE}" == "linux-musl" ]]; then
to
if [[ "${OSTYPE}" == "linux-gnu"* || "${OSTYPE}" == "linux" || "${OSTYPE}" == "linux-musl" ]]; then
I get the same issue on Raspberry Pi's and this seemed to work for me. My OSTYPE seems to be "linux-gnueabihf".
Steve
First, on both my Pi 2 running Kali Linux and Pi 3 running Raspbian, when I'm in the terminal (the terminal you go to if you don't start the x server, not the terminal app running in LXDE), SSH, or the desktop, it returns the PID of bash as the shell (which you can see in the screenshots below) rather than the name and version of bash.
It appears that
detectshell()
instead of runningecho "$SHELL" | awk -F'/' '{print $NF}'
which returnsbash
as it should, is dropping down to the else nested in the else which runsps -p $(ps -p $PPID | awk '$1 !~ /PID/ {print $1}') | awk 'FNR>1 {print $1}'
which returns the PID, 32573 in the case of the Pi 3 running on SSH.echo ${shell_type}
is returning nothing, so I'm not sure what's causing the problem.Second, on Raspberry Pis running screenfetch terminal or SSH the Intel GPU detection causes an issue.
On my Pi 2, I get the following:![screenfetch-ssh-kali](https://user-images.githubusercontent.com/179292/29151540-adeb402a-7d36-11e7-9908-fd8da48a5341.png)
On my Pi 3 with a Pi Sense hat installed, I get the following:![screenfetch-ssh](https://user-images.githubusercontent.com/179292/29151407-bff60a58-7d35-11e7-8062-12addf7d0c45.png)
Line 1341 is part of the Intel GPU detetction since in SSH/Terminal, it's unable to detect a GPU up to that point, so it runs
awk '{print $2}' /proc/fb
, which gave me the hint I needed to figure out what's going on:On the Raspberry Pi 3 with the Pi Sense hat installed,
cat /proc/fb
returns:This causes the issue on the Raspberry Pi 2 GPU info because
cat /proc/fb
still returns0 BCM2708 FB
.Third, if I run it under LXDE at 80x24, the GPU name causes wrapping:
It would be nice if the text wrapped without disrupting the ASCII art. It looks like it's not detecting the terminal size properly. Or, the GPU text could be trimmed a bit.
In all of these instances, I'm running version 3.8.0-3 from the Raspbian Buster and Kali kali-rolling repositories:
If there's any information I can provide to help with either of these three issues, please don't hesitate to ask! Thanks for the wonderful program!
Cheers, Zzyzx