RFC: Mac OSX should use existing Pictures/ Music/ Videos/ etc. directories - how exactly?
Joerg-Cyril.Hoehle at t-systems.com
Joerg-Cyril.Hoehle at t-systems.com
Tue Jun 23 10:17:44 CDT 2009
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
More information about the wine-devel
mailing list