Austin English austinenglish@gmail.com wrote:
On Fri, May 21, 2010 at 3:47 AM, Joerg-Cyril.Hoehle@t-systems.com wrote:
And I didn't write trivial Mac patches either, e.g. to have wineprefixcreate symlink c:\users\xyz\ Desktop + Videos + Documents + Music to /Users/xyz/Desktop/ etc. This happens on Linux, not on MacOS. That's another (example of a) missing element. (Why didn't I write it? Because I was unsure where to put the #ifdef)
Isn't that linking done relative to $HOME, which should resolve to /Users/xyz on Mac?
That's not the problem. What I also don't know is whether I could hardcode the directories ~/Documents etc. (these already exist in my /Users/xyz, (but what about Tiger?)), or whether I ought to call some OSX API that yields the name of the dir (and possibly creates it if it does not yet exist). I'm not familiar at all with Mac APIs, but it sounds like an easy patch for somebody with a little MacOS programming knowledge.
I haven't used Tiger in ages, but at least for me on Snow Leopard, I can't delete those directories, since OSX considers them 'essential to OS function'. The likelihood of them missing is small, IMHO.
Correct. However, you are free to create new directories for these functions and use them, except the Desktop. The location of these files could be changed but that is mostly beyond most Mac Users.
Defaulting to $HOME/Desktop and $HOME/Documents is a good first step.
James McKenzie
Hi,
James Mckenzie wrote:
Defaulting to $HOME/Desktop and $HOME/Documents is a good first step.
There are more directories: Music, Videos(Movies?), Pictures that IMHO such a patch should add at the same time since that's what MS knows about as well.
Austin English austinenglish@gmail.com wrote:
I haven't used Tiger in ages, but at least for me on Snow Leopard, I can't delete those directories, since OSX considers them 'essential to OS function'. The likelihood of them missing is small, IMHO.
Likelihood is not my friend. ls -le (or was it ls -l@?) will show the security attributes. You'll see that some of the directories have an ACL that prevents them from deletion despite the UNIX chmod flags that ls -l shows.
What puzzled me is that in an extra login account I created on my Mac, not all of these directories were initially created. Furthermore, some of these dirs in /Users/admin/ did not have the extra access control protection against deletion, while other dirs of same name in another login had them! (I then added the ACL manually, with chmod IIRC). That's why I conjecture the existence of a "create on demand" Mac OS API, that possibly not everybody uses.
mkdir("Videos"); is enough on Linux, but perhaps there's a more "OS-integrated" way in MacOS?
Regards, Jörg Höhle
Joerg-Cyril.Hoehle@t-systems.com wrote:
Hi,
James Mckenzie wrote:
Defaulting to $HOME/Desktop and $HOME/Documents is a good first step.
There are more directories: Music, Videos(Movies?), Pictures that IMHO such a patch should add at the same time since that's what MS knows about as well.
Austin English austinenglish@gmail.com wrote:
I haven't used Tiger in ages, but at least for me on Snow Leopard, I can't delete those directories, since OSX considers them 'essential to OS function'. The likelihood of them missing is small, IMHO.
Likelihood is not my friend. ls -le (or was it ls -l@?) will show the security attributes. You'll see that some of the directories have an ACL that prevents them from deletion despite the UNIX chmod flags that ls -l shows.
Either will work for this.
The Desktop folder has a + at the end of the directory for the current user...
I agree that the additional folders have to be created, the question is WHERE? $HOME or somewhere else like .wine/drive_c/?
James McKenzie
On Wed, May 26, 2010 at 8:46 PM, James McKenzie jjmckenzie51@earthlink.net wrote:
Joerg-Cyril.Hoehle@t-systems.com wrote:
Hi,
James Mckenzie wrote:
Defaulting to $HOME/Desktop and $HOME/Documents is a good first step.
There are more directories: Music, Videos(Movies?), Pictures that IMHO such a patch should add at the same time since that's what MS knows about as well.
Austin English austinenglish@gmail.com wrote:
I haven't used Tiger in ages, but at least for me on Snow Leopard, I can't delete those directories, since OSX considers them 'essential to OS function'. The likelihood of them missing is small, IMHO.
Likelihood is not my friend. ls -le (or was it ls -l@?) will show the security attributes. You'll see that some of the directories have an ACL that prevents them from deletion despite the UNIX chmod flags that ls -l shows.
Either will work for this.
The Desktop folder has a + at the end of the directory for the current user...
I agree that the additional folders have to be created, the question is WHERE? $HOME or somewhere else like .wine/drive_c/?
The code you're looking for is in shell32/shellpath.c: http://source.winehq.org/git/wine.git/?a=blob;f=dlls/shell32/shellpath.c;hb=...
feel free to send a patch. I haven't gotten my mac mini fixed up for wine yet, it'll be a while before I have time to do so.