RFC: Mac OSX should use existing Pictures/ Music/ Videos/ etc. directories - how exactly?

Lei Zhang thestig at google.com
Wed Jul 1 14:54:54 CDT 2009


On Tue, Jun 23, 2009 at 8:17 AM, <Joerg-Cyril.Hoehle at t-systems.com> wrote:
> Hi,
>
> http://bugs.winehq.org/show_bug.cgi?id=19028
>
> winecfg on Mac OSX (10.5.6 and .7) does not link "My Videos" etc. to the
> equivalent directories on the Mac. Everything is linked to $HOME (or was it
> Desktop/?) instead. What a pity!
>
> Mac OSX uses directories named Documents/, Pictures/, Videos/, Music/ -- even
> in the German locale. The Finder GUI provides localized names.  Unlike
> XDG/Gnome there are no crazy hacks at session begin to rename directories based
> on the session's locale.
> I don't know how earlier releases of Mac OSX behave, i.e. whether these
> directories have always been present. Does anyone know a reference?
>
> I located the relevant places that would need a patch:
> dlls/shell32/shellpath.c:_SHCreateSymbolicLinks
> and possibly
> dlls/shell32/xdg.c:XDG_UserDirLookup
>
> However, some design issues are unclear to me, hence prevent me from writing a patch:
> - In what order to add the Mac check?
> - When to check for a folder named "My Documents" (MS-Windows non-localized
>  name in English locale, possibly translated), and when for "Documents"
>  (MacOS constant name)?
> - Use XDG on the Mac or not? (if linked in, e.g. possibly when compiled via
>  MacPorts, which pulls in a zillion libraries. Apple does not provide
>  libfreedesktop.)
>
> Thanks for your comments,
>        Jörg Höhle
>
>
>

You probably want a separate code path in shellpath.c for the Mac. I
don't think XDG works there.



More information about the wine-devel mailing list