Skip to content
Snippets Groups Projects
Commit 95a4558f authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use kDownloadsFolderType for downloads.

Found by digging through headers... Apple doesn't document this.
parent 7007cf7c
No related branches found
No related tags found
No related merge requests found
......@@ -936,7 +936,7 @@ static char *get_new_OSX_filename(char *fn, int fnlen, int type, int shared)
case SYNCTERM_DEFAULT_TRANSFER_PATH:
/* I'd love to use the "right" setting here, but don't know how */
if(FSFindFolder(shared?kLocalDomain:kUserDomain, kDesktopFolderType, kCreateFolder, &ref)!=noErr)
if(FSFindFolder(shared?kLocalDomain:kUserDomain, kDownloadsFolderType, kCreateFolder, &ref)!=noErr)
return(NULL);
if(FSRefMakePath(&ref, (unsigned char*)fn, fnlen)!=noErr)
return(NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment