yaddemo icon indicating copy to clipboard operation
yaddemo copied to clipboard

Found a way to make Form buttons close!!

Open arifd opened this issue 4 years ago • 0 comments

#!/bin/bash

function choice(){
    echo $1
    kill -s SIGTERM $YAD_PID
}
export -f choice

yad --form --text="Choose a browser to launch:" \
    --field="Foo":fbtn "bash -c 'choice hello'" \
    --field="bar":fbtn "bash -c 'choice world'" \
    --button=gtk-cancel:1
exit

discovered here: https://sourceforge.net/p/yad-dialog/tickets/211/

arifd avatar Jan 20 '21 10:01 arifd