#!/bin/bash

x=basename "$1"

if zenity --question --icon-name='dialog-warning' --text="$x is executable...\n\nAre you sure you want to run this program?"; then
    pth=`dirname "$1"`
    cd "$pth"
    ./x
else
    exit 0
fi

exit 0
