"My Documents" and other symlinks to home are not

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
leniviy
Level 2
Level 2
Posts: 39
Joined: Sat Jun 27, 2009 3:19 pm

"My Documents" and other symlinks to home are not

Post by leniviy » Sat Sep 03, 2011 7:14 am

Hi. My Documents, My Music, My Pictures, and My Videos aren't visible (but accessible) from C:\users\%USER% . "Desktop", however, is visible.
This breaks precompiled samples from directx SDK 2004. I extracted them to My Documents/Downloads, and they can't find their resources.

This also affects cmd.exe, explorer, total commander.

Anyone else experience this?

Code: Select all

[il@mar2 ~]$ ls -l /home/il/.winetest/drive_c/users/il
total 44
drwxr-xr-x 2 il il 4096 Sep  3 14:15 Application Data
drwxr-xr-x 2 il il 4096 Sep  3 14:15 Cookies
lrwxrwxrwx 1 il il   16 Sep  3 14:15 Desktop -> /home/il/Desktop
drwxr-xr-x 2 il il 4096 Sep  3 14:15 Favorites
drwxr-xr-x 5 il il 4096 Sep  3 14:15 Local Settings

Code: Select all

lrwxrwxrwx 1 il il    8 Sep  3 14:15 My Documents -> /home/il
lrwxrwxrwx 1 il il    8 Sep  3 14:15 My Music -> /home/il
lrwxrwxrwx 1 il il    8 Sep  3 14:15 My Pictures -> /home/il
lrwxrwxrwx 1 il il    8 Sep  3 14:15 My Videos -> /home/il

Code: Select all

drwxr-xr-x 2 il il 4096 Sep  3 14:15 NetHood
drwxr-xr-x 2 il il 4096 Sep  3 14:15 PrintHood
drwxr-xr-x 2 il il 4096 Sep  3 14:15 Recent
drwxr-xr-x 2 il il 4096 Sep  3 14:15 SendTo
drwxr-xr-x 3 il il 4096 Sep  3 14:15 Start Menu
drwxr-xr-x 2 il il 4096 Sep  3 14:15 Temp
drwxr-xr-x 2 il il 4096 Sep  3 14:15 Templates

Code: Select all

[il@mar2 ~]$ echo $WINEPREFIX 
/home/il/.winetest
[il@mar2 ~]$ wine cmd /c "dir" "C:\users\il"
Volume in drive C is 
Volume Serial Number is 0000-0000

Directory of C:\users\il

  9/3/2011   1:15 PM  <DIR>         .
  9/3/2011   1:15 PM  <DIR>         ..
  9/3/2011   1:15 PM  <DIR>         Application Data
  9/3/2011   1:15 PM  <DIR>         Cookies
  9/3/2011  12:26 PM  <DIR>         Desktop
  9/3/2011   1:15 PM  <DIR>         Favorites
  9/3/2011   1:15 PM  <DIR>         Local Settings
  9/3/2011   1:15 PM  <DIR>         NetHood

Code: Select all

  9/3/2011   1:15 PM  <DIR>         PrintHood
  9/3/2011   1:15 PM  <DIR>         Recent
  9/3/2011   1:15 PM  <DIR>         SendTo
  9/3/2011   1:15 PM  <DIR>         Start Menu
  9/3/2011   1:15 PM  <DIR>         Temp
  9/3/2011   1:15 PM  <DIR>         Templates
       0 files                        0 bytes
      14 directories      5,583,409,152 bytes free

[il@mar2 ~]$ 

oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Post by oiaohm » Sat Sep 03, 2011 7:45 am

Sorry to say this but this is a Stiff briskets issue.

Since
lrwxrwxrwx 1 il il 8 Sep 3 14:15 My Documents -> /home/il
lrwxrwxrwx 1 il il 8 Sep 3 14:15 My Music -> /home/il
lrwxrwxrwx 1 il il 8 Sep 3 14:15 My Pictures -> /home/il
lrwxrwxrwx 1 il il 8 Sep 3 14:15 My Videos -> /home/il
All point to the same location. Users home directory.

Open up winecfg go to desktop integration change My Documents to point to like /home/il/Documents and it will magically appear. Or you might decide to give wine its own documents directory and again it will magically appear.

When they are pointing to the generic user home directory they auto pull the disappearing act. Mostly to motivate people to configure them to point to your document store and so on.

Yes you really don't want windows applications accessing the straight home directory if you can avoid it.

Yes if you point Desktop to /home/il it will disappear from existence as well.

lenivity the trick to non experienced basically. Its not that they are links that it special is the path the link is pointing to.

vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: "My Documents" and other symlinks to home are

Post by vitamin » Sat Sep 03, 2011 11:08 am

leniviy wrote:Hi. My Documents, My Music, My Pictures, and My Videos aren't visible (but accessible) from C:\users\%USER% . "Desktop", however, is visible.
That is intentional. Wine does note enumerate symlinks that point to parent directories:

Code: Select all

$ WINEDEBUG=warn+file wine cmd /c dir 'c:\users\vitaliy'
Volume in drive C is 
Volume Serial Number is 0000-0000

warn:file:check_dir_symlink suppressing dir symlink L"\\??\\C:\\users\\vitaliy\\My Videos" pointing to parent "/home/vitaliy"
warn:file:check_dir_symlink suppressing dir symlink L"\\??\\C:\\users\\vitaliy\\My Music" pointing to parent "/home/vitaliy"
warn:file:check_dir_symlink suppressing dir symlink L"\\??\\C:\\users\\vitaliy\\My Pictures" pointing to parent "/home/vitaliy"
I'm guessing this is worth a bug report. As a work around, like oiaohm mentioned, you can convert them into real directories with winecfg.

oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Post by oiaohm » Sat Sep 03, 2011 5:28 pm

Might be worth a bug report to request ~/Documents as My Documents and so on.

Since it does get away from some badly behaved open source program ported to windows that put there . directories in the My Documents directory. Not that you really should be running those programs in wine in the first place.

doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 » Sat Sep 03, 2011 5:55 pm

oiaohm wrote:Might be worth a bug report to request ~/Documents as My Documents and so on.

Since it does get away from some badly behaved open source program ported to windows that put there . directories in the My Documents directory. Not that you really should be running those programs in wine in the first place.
its easy to call a home folder variable... but not every distro, or other OS uses the same folder names for those things... even if they worked it out for everything... a lot of people don;t even want them there and want to put them manually elsewhere. Why not just set winecfg how you want it and then your good to go?

Locked