I am using Yad for a simple interface.
The problem I am having is that the standard output has the value of the User field if I press Enter in the field itself. However, if I press the "save" button, then there is nothing in the standard output.
Here is the script!
res=$(yad \
--width=600 \
--title="Config" \
--text="COnfiguration options" \
--form \
--field="User" \
--button="Save:1" \
--button="Cancel:2" \
--center)
ret=$?
echo $ret
echo $res