View Single Post
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#13
Originally Posted by MohammadAG View Post
Right, try this.
Code:
#! /bin/sh -e

Q=`run-standalone.sh zenity --question --text="Install custom transitions?" --ok-label=Yes; echo $?`

if [ "$Q" = "0" ]; then
      # install the custom things
      echo "User chose yes"
else
      # do not install the custom things
      echo "User chose no"
fi
Haven't tested the script cause I'm not on Maemo (on Ubuntu atm) on the N900, but it works on my PC
Hope it works
Works like a charm! I was going to come and ask how can I change the return value of zenity to be something else than exit code, but you already posted the answer and now things seems to be rolling just fine

Best regards to you guys!
- R
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE
 

The Following User Says Thank You to d-iivil For This Useful Post: