#3313: GTKUI thinclient cannot start localhost daemon on Windows.
---------------------+----------------------------
  Reporter:  mhertz  |      Owner:
      Type:  bug     |     Status:  new
  Priority:  minor   |  Milestone:  needs verified
 Component:  GTK UI  |    Version:  2.0.3
Resolution:          |   Keywords:
---------------------+----------------------------

Comment (by tobbez):

 This can be fixed by applying the following change:

 {{{
 #!diff
 diff --git a/deluge/ui/client.py b/deluge/ui/client.py
 index 686f962b3..4db737c28 100644
 --- a/deluge/ui/client.py
 +++ b/deluge/ui/client.py
 @@ -668,10 +668,8 @@ def start_daemon(self, port, config):
              bool: True is successfully started the daemon, False
 otherwise.

          """
 -        # subprocess.popen does not work with unicode args (with non-
 ascii characters) on windows
 -        config = config.encode(sys.getfilesystemencoding())
          try:
 -            subprocess.Popen(['deluged', '--port=%s' % port, b'--
 config=%s' % config])
 +            subprocess.Popen(['deluged', '--port=%s' % port, '--
 config=%s' % config])
          except OSError as ex:
              from errno import ENOENT
 }}}

 On Python 3 this works even when the config directory path contains non-
 ASCII characters, but on Python 2 it likely won't.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3313#comment:2>
Deluge <https://deluge-torrent.org/>
Deluge Project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/deluge-dev/060.55179a890bd6bd042a8d74a11191653d%40deluge-torrent.org.

Reply via email to