Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit d2950f47 authored by Deucе's avatar Deucе 👌🏾

Use kDownloadsFolderType for downloads.

Found by digging through headers... Apple doesn't document this.
parent 878c277a
Pipeline #1648 passed with stage
in 10 minutes and 39 seconds
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment