Fix autostarting daemon.
This commit is contained in:
parent
2e895795b6
commit
e65d720890
|
@ -36,6 +36,7 @@ import pkg_resources
|
|||
import gobject
|
||||
import socket
|
||||
import os
|
||||
import time
|
||||
|
||||
import deluge.component as component
|
||||
import deluge.xmlrpclib as xmlrpclib
|
||||
|
|
|
@ -94,6 +94,9 @@ DEFAULT_PREFS = {
|
|||
|
||||
class GtkUI:
|
||||
def __init__(self, args):
|
||||
# Initialize gdk threading
|
||||
gtk.gdk.threads_init()
|
||||
|
||||
# Initialize gettext
|
||||
locale.setlocale(locale.LC_MESSAGES, '')
|
||||
locale.bindtextdomain("deluge",
|
||||
|
@ -143,7 +146,6 @@ class GtkUI:
|
|||
self.connectionmanager.show()
|
||||
|
||||
# Start the gtk main loop
|
||||
gtk.gdk.threads_init()
|
||||
gtk.main()
|
||||
|
||||
log.debug("gtkui shutting down..")
|
||||
|
|
Loading…
Reference in New Issue