Make 'deluge -u null' launch the null client.
This commit is contained in:
parent
4eabde05ff
commit
5f40e030b1
|
@ -219,6 +219,8 @@ commands = (('add', add_torrent, 'Add a torrent'),
|
||||||
|
|
||||||
client.set_core_uri("http://localhost:58846")
|
client.set_core_uri("http://localhost:58846")
|
||||||
|
|
||||||
|
class NullUI:
|
||||||
|
def __init__(self, args):
|
||||||
print "Welcome to deluge-shell. Type 'help' to see a list of available commands."
|
print "Welcome to deluge-shell. Type 'help' to see a list of available commands."
|
||||||
|
|
||||||
readline.read_init_file()
|
readline.read_init_file()
|
|
@ -59,4 +59,8 @@ class UI:
|
||||||
log.info("Starting WebUI..")
|
log.info("Starting WebUI..")
|
||||||
from deluge.ui.webui.webui import WebUI
|
from deluge.ui.webui.webui import WebUI
|
||||||
ui = WebUI(args)
|
ui = WebUI(args)
|
||||||
|
elif selected_ui == "null":
|
||||||
|
log.info("Starting NullUI..")
|
||||||
|
from deluge.ui.null.deluge_shell import NullUI
|
||||||
|
ui = NullUI(args)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue