Hello everyone,
I have a doubt since this script if I click 2x in gui mode it will make me an infinite loop I would like to know how it runs or how it is called to see how I can remove this bug
inside function interactive i could add the option if i was running via terminal or not to avoid infinite loop but don't think its the best hack but ...
exe:
Code: Select all
GI="$(ps aux | grep -e " X \|Xorg\|xinit\|xwin\|wayland" | grep -v grep)"
if [ -t 0 -o -z "${GI}" ] ; then
code that runs well via terminal even tho doesn't make sense to me
fi
thxx in advance