RasatPC
RasatPC

Reputation: 31

Yad dialog image to run a script?

How to make the image in yad dialog box clickable to run a bash script? I have tried this line...

yad --title="WeatherIcon" --image=forecaNOW.png --dclick-action="bash -c 'weatherBOX.sh'" --no-buttons

Upvotes: -2

Views: 445

Answers (1)

RasatPC
RasatPC

Reputation: 31

After searching for an answer, --dclick-action is for rows, not images. There is another option for an image adding it to a button, of any size.

yad --title="WeatherIcon" --button='!forecaNOW.png!Name:bash -c "./weatherBOX.sh"'

Screenshot: (forecaNOW.png size 92x175)

enter image description here

Upvotes: 0

Related Questions