Skip to content

Found a way to make Form buttons close!! #1

@arifd

Description

@arifd
#!/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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions