1234567891011121314151617181920212223242526272829303132333435 |
- #!/bin/sh
- export MAIN_DIALOG='
- <window title="1download control panel" icon-name="gtk-dialog-warning">
- <vbox>
- <hbox>
- <text><label>Pause after current package has downloaded:</label></text>
- <button>
- <label>Pause</label>
- <action>echo 'Pause' > /tmp/1download-status-request</action>
- </button>
- </hbox>
- <hbox>
- <text><label>Resume downloading if currently paused:</label></text>
- <button>
- <label>Resume</label>
- <action>echo 'Resume' > /tmp/1download-status-request</action>
- </button>
- </hbox>
- <hbox>
- <text><label>Quit 1download script after current pkg has download:</label></text>
- <button>
- <label>Quit</label>
- <action>echo 'Quit' > /tmp/1download-status-request</action>
- <action type="exit">Exit</action>
- </button>
- </hbox>
- <text><label>Note: If you Quit, 1download can be run again and will continue from where it left off. That is, previously downloaded packages will not be re-downloaded.</label></text>
- </vbox>
- </window>
- '
- gtkdialog3 --program=MAIN_DIALOG &
- echo -n $! > /tmp/1download_controlpanel_pid
|