#2208: Open Folder not working after Complete download moved under Windows
-------------------------------------------+--------------------------------
 Reporter:  Albertina                      |       Owner:        
     Type:  bug                            |      Status:  new   
 Priority:  minor                          |   Milestone:  Future
Component:  windows                        |     Version:  1.3.5 
 Keywords:  windows open folder completed  |  
-------------------------------------------+--------------------------------

Comment(by Cas):

 Just looked into this and it's an issue with non-ascii folder names, the
 fix should look something like the following but probably should be
 covered with a try..except for the decode.

 {{{
 #!diff
 diff --git a/deluge/common.py b/deluge/common.py
 index 29c37e8..cfab4f8 100644
 --- a/deluge/common.py
 +++ b/deluge/common.py
 @@ -240,7 +240,7 @@ def open_file(path):

      """
      if windows_check():
 -        os.startfile("%s" % path)
 +        os.startfile(path.decode("utf8"))
      elif osx_check():
          subprocess.Popen(["open", "%s" % path])
      else:
 }}}

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/2208#comment:2>
Deluge <http://deluge-torrent.org/>
Deluge project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.

Reply via email to