2 # Simple Adobe Air SDK wrapper script to use it as a simple AIR application launcher
7 echo "Please supply an .air application as first argument"
11 export GTK_PATH
=/opt
/lib32
/usr
/lib
/gtk-2.0
12 export PANGO_RC_FILE
=/opt
/lib32
/config
/pango
/pangorc
13 export GDK_PIXBUF_MODULE_FILE
=/opt
/lib32
/config
/gdk
/gdk-pixbuf.loaders
14 export GTK_IM_MODULE_FILE
=/opt
/lib32
/config
/gdk
/gdk.immodules
15 export G_FILENAME_ENCODING
=UTF-8
17 tmpdir
=`mktemp -d /tmp/adobeair.XXXXXXXXXX`
19 echo "adobe-air: Extracting application to directory: $tmpdir"
21 unzip -q $1 -d $tmpdir ||
exit 1
23 echo "adobe-air: Attempting to start application"
24 /opt
/adobe-air-sdk
/bin
/adl
-nodebug $tmpdir/META-INF
/AIR
/application.xml
$tmpdir
26 echo "adobe-air: Cleaning up temporary directory"
27 rm -Rf $tmpdir && echo "adobe-air: Done"