Changeset 8138 for trunk/libtransmission/platform.c
- Timestamp:
- Apr 5, 2009, 1:41:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/platform.c
r8136 r8138 41 41 42 42 #include "transmission.h" 43 #include "ggets.h"44 43 #include "session.h" 45 44 #include "list.h" … … 445 444 } 446 445 447 /* This was stolen from gthumb, though it probably originates from448 * xdg-user-dirs's xdg-user-dir-lookup.c. See:449 * http://www.redhat.com/archives/fedora-devel-list/2007-March/msg00677.html450 */451 446 const char* 452 447 tr_getDefaultDownloadDir( void ) … … 454 449 static char * user_dir = NULL; 455 450 456 #ifdef SYS_DARWIN457 458 user_dir = tr_buildPath( getHomeDir( ), "Downloads", NULL );459 460 #else461 462 451 if( user_dir == NULL ) 463 452 { 453 #ifndef SYS_DARWIN 454 455 user_dir = tr_buildPath( getHomeDir( ), "Downloads", NULL ); 456 457 #else 464 458 const char * config_home; 465 459 char * config_file; … … 502 496 tr_free( content ); 503 497 tr_free( config_file ); 504 } 505 506 #endif 498 #endif 499 } 507 500 508 501 return user_dir;
Note: See TracChangeset
for help on using the changeset viewer.