Comment 12 for bug 1070682

Revision history for this message
bcbc (bcbc) wrote :

I was thinking that maybe the problem isn't replacing the '-' with spaces. This makes it more user friendly in the GUI as it shows "Ubuntu Studio" in the drop down box, not "Ubuntu-Studio". The problem is that it's not escaping the image file names properly. It shouldn't have an issue problem copying "Ubuntu Studio.ico". It does that in backends/win32/backend.py. Then you can use the more user friendly "Ubuntu Studio" and it will match the .disk/info.

Here is the error from my first version (that used "Ubuntu Studio"):
11-02 01:31 DEBUG WindowsBackend: Copying C:\Users\bcbc_~1\AppData\Local\Temp\pyl7B56.tmp\data\images\Ubuntu\ Studio.ico -> C:\ubuntu\Ubuntu\ Studio.ico
11-02 01:31 ERROR TaskList: [Errno 2] No such file or directory: 'C:\\Users\\bcbc_~1\\AppData\\Local\\Temp\\pyl7B56.tmp\\data\\images\\Ubuntu\\ Studio.ico'
Traceback (most recent call last):
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\win32\backend.py", line 160, in copy_installation_files
  File "\lib\shutil.py", line 38, in copyfile