• Chip Davis's avatar
    shell32: Don't use Carbon on Mac OS to find the Trash. · efac5d06
    Chip Davis authored
    Due to a weird interaction between Wine and (what I believe to be)
    os_log/os_signpost, we can't use FSPathMakeRef() (nor any other function
    that calls that) from a Wine process. We also can't use the
    NSSearchPathForDirectoriesInDomains() function. Setting aside the fact
    that it's Objective-C (something we can work around, given that NS and
    CF types are toll-free bridged), a) support for getting the Trash folder
    was only added in 10.8 (when FSFindFolder() was deprecated), and b) it
    doesn't even support volume-specific Trash folders.
    
    For now, just hardcode the paths to the Trash folder.
    Signed-off-by: 's avatarChip Davis <cdavis@codeweavers.com>
    Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    efac5d06
trash.c 24.8 KB