Fix read_link to use a more appropiate api
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu One Client |
In Progress
|
Medium
|
Brian Curtin |
Bug Description
shortcut.Targetpath is returning a malformed path when the paths contains unicode chars, but GetWorkingDirectory works just fine for this case (but we need to set the WorkingDirectory variable).
Now it was fixed using WorkingDirectory because all the links are created by us, but we should fix this in order to support the proper api and get the target of the link in a more accurate way.
* Read Link: We couldn't store the TargetPath correctly with unicode chars in the path for a shortcut on windows, we were able to create a shortcut with an unicode target, but we couldn't retrieve it. The workaround that we have in this moment involve saving the TargetPath in the WorkingDirectory attribute of the shortcut, and retrieve that value in the "read_link" function, because WorkingDirectory can handle unicode values without any problem. You can see the code at: u1-client/
In this case we are using comtypes (that is a pure Python COM package based on the ctypes: http://
Related branches
Changed in ubuntuone-client: | |
assignee: | nobody → Ubuntu One Desktop+ team (ubuntuone-desktop+) |
description: | updated |
Changed in ubuntuone-client: | |
assignee: | Ubuntu One Desktop+ team (ubuntuone-desktop+) → Brian Curtin (brian.curtin) |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in ubuntuone-client: | |
status: | Triaged → In Progress |