I created a link in Nautilus in the
~/bin directory for a bash script located there. Then I cut and pasted the link into the
When I click on it nothing appears on the screen. If I right click on the link and select
Run nothing appears either. But I know it is running because
conky shows multiple CPUs having high load.
Normal CPU% should be 5% to 8% but it is hovering around 79%. Each instance of the link is taking about 5% CPU plus
systemd is taking 5% CPU for journaling. The temperature is normally < 50C but in this case it hovers around 75C.
I rifled through
journalctl and found the offending / looping problem:
$ journalctl -b-1 | grep 'TERM environment variable not set.' | wc 35763 357630 3325959
I checked the soft link and it appears ok:
lrwxrwxrwx 1 rick rick 30 Mar 26 10:14 Link to grub-display.sh -> /home/rick/bin/grub-display.sh*
Note this is a brand-new script I just posted today: How to display grub menu and options without booting?. Within the script the
clear command is used which is linked to
TERM error messages in another thread here and here: How can I fix the "TERM environment variable not set" warning in eclipse
Some of the solutions to the
journalctl error message above require looking at:
$ env | grep TERM TERM=xterm-256color
I'm wondering if this is something
~/.bashrc does when you open a terminal but missing when a desktop shortcut (link) runs a terminal command directly?
grub-display.sh bash script runs perfectly fine from a terminal window.
How can I fix this malfunctioning Desktop link Nautilus created for me?