use custom handler for double-click action

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#!/bin/bash

function dclick-hndl () {
        xdg-open "$2"
}
export -f dclick-hndl

yad --center --on-top --list --width=300 --height=200 \
        --dclick-action='bash -c "dclick-hndl %s"' \
        --column=Title --column=File \
        1 1.pdf 2 2.pdf 3 3.pdf
 

Last edit: Victor Ananjevsky 2014-06-18