wok-stable diff ctorrent-dnh/stuff/torrentbox @ rev 7980
cups: switch openssl depends to libssl
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon Jan 17 19:22:47 2011 +0100 (2011-01-17) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ctorrent-dnh/stuff/torrentbox Mon Jan 17 19:22:47 2011 +0100 1.3 @@ -0,0 +1,80 @@ 1.4 +#! /bin/sh 1.5 +# 1.6 +# Gtkdialog box to dl a torrent file with ctorrent throught a Xterm. 1.7 +# - SliTaz GNU/Linux 2008. 1.8 +# 1.9 +VERSION=2008041 1.10 + 1.11 +mkdir -p ~/Downloads 1.12 +cd ~/Downloads 1.13 + 1.14 +# We need at least a torrent filename. 1.15 +# 1.16 +export MOUNT_DIALOG=' 1.17 +<window title="Torrentbox" icon-name="drive-optical"> 1.18 + <vbox> 1.19 + 1.20 + <text use-markup="true"> 1.21 + <label> 1.22 +" 1.23 +<b>SliTaz - Torrentbox</b>" 1.24 + </label> 1.25 + </text> 1.26 + <text wrap="true" width-chars="54" use-markup="true"> 1.27 + <label> 1.28 +" 1.29 +Download a torrent file with ctorrent. 1.30 +" 1.31 + </label> 1.32 + </text> 1.33 + 1.34 + <frame Ctorrent options> 1.35 + <hbox> 1.36 + <text use-markup="true"> 1.37 + <label>"<b>Options :</b>"</label> 1.38 + </text> 1.39 + <entry> 1.40 + <variable>DL_OPTS</variable> 1.41 + </entry> 1.42 + <button> 1.43 + <input file icon="help"></input> 1.44 + <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x46 -T "ctorrent help" -e "ctorrent -h ; echo -e \"----\nENTER to continue...\" && read close"</action> 1.45 + </button> 1.46 + </hbox> 1.47 + </frame> 1.48 + 1.49 + <frame Download Torrent> 1.50 + <hbox> 1.51 + <text use-markup="true"> 1.52 + <label>"<b>File :</b>"</label> 1.53 + </text> 1.54 + <entry> 1.55 + <variable>TORRENT</variable> 1.56 + </entry> 1.57 + <button> 1.58 + <input file stock="gtk-open"></input> 1.59 + <action type="fileselect">TORRENT</action> 1.60 + </button> 1.61 + </hbox> 1.62 + </frame> 1.63 + 1.64 + <hbox> 1.65 + <button> 1.66 + <label>Download</label> 1.67 + <input file icon="forward"></input> 1.68 + <action>exec xterm -T "Ctorrent download" -e "ctorrent $DL_OPTS \"$TORRENT\" ; echo -e \"----\nENTER to close window...\" && read close"</action> 1.69 + </button> 1.70 + <button> 1.71 + <input file icon="exit"></input> 1.72 + <action type="exit">Exit</action> 1.73 + </button> 1.74 + </hbox> 1.75 + 1.76 + </vbox> 1.77 +</window> 1.78 +' 1.79 + 1.80 +# Execute main dialog. 1.81 +gtkdialog --program=MOUNT_DIALOG 1.82 + 1.83 +exit 0