set how the exit variable is set. For instance
<action>exit:EXIT</action> sets the exit variable to "EXIT"
When you run your script in the terminal the variable is printed.
(a nice feature of terminal )
Code: Select all
funcbtnType0Create3() {
echo '<button image-position="'$1'" use-stock="true" tooltip-text="'$(gettext 'Relaunch Bulldog Finder')'">
<input file stock="gtk-ok"></input>
<label>"'$(gettext 'Relaunch')'"</label>
<action>bulldog-finder "$FPATH" &</action>
<action>exit:EXIT</action>
</button>'
decide what is done next . Here's an example in my bulldog-finder
program.
Code: Select all
for STATEMENTS in $($GTKDIALOG -c -p SETTINGS); do
eval $STATEMENTS
done
IFS=$I
if [ "$EXIT" = "EXIT" ] || [ "$EXIT" = "abort" ];then # delete temp
rm -rf $TEMPDIR
exit 0
fi
gtkdialog again