Changeset 8138


Ignore:
Timestamp:
Apr 5, 2009, 1:41:38 PM (12 years ago)
Author:
charles
Message:

(trunk libT) fix xdg oops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r8136 r8138  
    4141
    4242#include "transmission.h"
    43 #include "ggets.h"
    4443#include "session.h"
    4544#include "list.h"
     
    445444}
    446445
    447 /* This was stolen from gthumb, though it probably originates from
    448  * xdg-user-dirs's xdg-user-dir-lookup.c. See:
    449  * http://www.redhat.com/archives/fedora-devel-list/2007-March/msg00677.html
    450  */
    451446const char*
    452447tr_getDefaultDownloadDir( void )
     
    454449    static char * user_dir = NULL;
    455450
    456 #ifdef SYS_DARWIN
    457 
    458     user_dir = tr_buildPath( getHomeDir( ), "Downloads", NULL );
    459 
    460 #else
    461 
    462451    if( user_dir == NULL )
    463452    {
     453#ifndef SYS_DARWIN
     454
     455        user_dir = tr_buildPath( getHomeDir( ), "Downloads", NULL );
     456
     457#else
    464458        const char * config_home;
    465459        char * config_file;
     
    502496        tr_free( content );
    503497        tr_free( config_file );
    504     }
    505 
    506 #endif
     498#endif
     499    }
    507500
    508501    return user_dir;
Note: See TracChangeset for help on using the changeset viewer.