- added support for console UI
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Tue, 7 Feb 2006 22:07:26 +0000 (22:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Azureus.sh -> 1.3

Azureus.sh

index c5b0482..30430da 100644 (file)
@@ -1,12 +1,33 @@
 #!/bin/sh
 
+AZUHOME="$HOME/.Azureus"
+
 if [ `arch` == "x86_64" ]; then
        LIBDIR="/usr/lib64"
 else
        LIBDIR="/usr/lib"
 fi
 
-CLASSPATH="/usr/share/java/swt.jar:/usr/share/java/commons-cli.jar:/usr/share/java/log4j.jar:/usr/share/Azureus/Azureus.jar"
+if [ -f $AZUHOME/pld.config ]; then
+       . $AZUHOME/pld.config
+else
+       if [ ! -e $AZUHOME ]; then
+               mkdir $AZUHOME
+       fi
+       
+       UI="swt"
+       
+       cat > $AZUHOME/pld.config << EOF
+# UI options:
+# - swt
+# - console
+
+UI="swt"
 
-java -cp $CLASSPATH -Djava.library.path=$LIBDIR/swt org.gudy.azureus2.ui.swt.Main
+EOF
+
+fi
+
+CLASSPATH="/usr/share/java/swt.jar:/usr/share/java/commons-cli.jar:/usr/share/java/log4j.jar:/usr/share/Azureus/Azureus.jar"
 
+java -cp $CLASSPATH -Djava.library.path=$LIBDIR/swt org.gudy.azureus2.ui.common.Main --ui=$UI
This page took 0.079905 seconds and 4 git commands to generate.