Mapping Folder crash program and report errors on terminal

Bug #538527 reported by Tiago J. Pavan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Vineyard
Fix Released
High
Christian Dannie Storgaard

Bug Description

When I try to change Folder Mapping, Vineyard crash and instantly disable all options.
Running Vineyard on terminal, I receive this messages when try to map new folders:

nutri@kazuma-system:~$ vineyard-preferences
Traceback (most recent call last):
  File "/usr/bin/vineyard-preferences", line 1089, in onApply
    wine.shellfolders.set("desktop", self.settings['shellfolderdesktop'])
  File "/usr/lib/pymodules/python2.6/wine/_shellfolders.py", line 30, in set
    folderpath = "%s/drive_c/%s/%s" % (os.environ['WINEPREFIX'], "/".join(userpath[3:].split("\\")[:-1]), foldername)
TypeError: 'NoneType' object is unsubscriptable

Using python-wine_0.2.5.4 and vineyard_0.1.4.1.3 DEB packages on Ubuntu Karmic and Ubuntu Lucid, and receiving the same messages on terminal.

I attached an screenshot of the problem.

Revision history for this message
Tiago J. Pavan (tiagojpavan) wrote :
Changed in vineyard:
assignee: nobody → Christian Dannie Storgaard (cybolic)
importance: Undecided → High
Revision history for this message
Christian Dannie Storgaard (cybolic) wrote :

Thanks for reporting this.
I'm having trouble finding the cause of the crash, do you think you could send me the output of running the following in a terminal?:

python -c "import wine; print wine.registry.get('HKEY_LOCAL_MACHINE\\\\System\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment', 'APPDATA')"

Thank you for your help.

Revision history for this message
Christian Dannie Storgaard (cybolic) wrote :

I can't reproduce the bug, but can you check if applying the attached patch fixes the problem?

To apply the patch, you can run:

sudo patch /usr/share/pyshared/wine/_shellfolders.py 1.4-_shellfolders.patch

Revision history for this message
marzojr (marzojr) wrote :

I am also experiencing this same issue, so I may be able to help. The script from #2 prints the single line 'None'; running with the patch changes the error message to this:

Skipping Desktop, there are files in the directory
Traceback (most recent call last):
  File "/usr/local/bin/vineyard-preferences", line 1095, in onApply
    wine.shellfolders.set("desktop", self.settings['shellfolderdesktop'])
  File "/usr/local/lib/python2.6/dist-packages/wine/_shellfolders.py", line 45, in set
    os.symlink(target, folderpath)
OSError: [Errno 2] No such file or directory

I tried creating empty target folders and removing or moving away the original links; the error is the same either way.

Revision history for this message
Christian Dannie Storgaard (cybolic) wrote :

Thanks for helping again marzojr. Do you think you can post the output of this?

ls -ld ~/.wine/drive_c/windows/profiles/*/*

I'm guessing this has to with locales but I'd like to be sure.

Revision history for this message
Christian Dannie Storgaard (cybolic) wrote :

Okay, if I'm right about the locale, this patch should work.

Revision history for this message
Christian Dannie Storgaard (cybolic) wrote :

 I was able to reproduce the error by creating a blank .wine directory in another language than English and here the patch fixes the problem. Marking as closed.

Changed in vineyard:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.