Ignore:
Timestamp:
Apr 10, 2009, 5:34:25 PM (13 years ago)
Author:
charles
Message:

(1.5x libT) various backports for 1.52:
(1) recognize Aria2 as a client
(2) remove jhujhiti's tr_suspectAddress(), since he removed it from trunka
(3) on Mac, better detection of where the Web UI files are located
(4) reintroduce the web task queue
(5) various minor formatting changes to reduce the diffs between 1.52 and trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5x/libtransmission/platform.c

    r8162 r8204  
    530530        {
    531531
    532 #ifdef SYS_DARWIN
     532#ifdef SYS_DARWIN /* on Mac, look in the app package first, then the Application Support folder (for daemon, etc) */
    533533
    534534            CFURLRef appURL = CFBundleCopyBundleURL( CFBundleGetMainBundle( ) );
     
    541541
    542542            s = tr_buildPath( appString, "Contents", "Resources", "web", NULL );
     543           
     544            if( !isClutchDir( s ) ) {
     545                tr_free( s );
     546               
     547                /* Fallback to the Application Support folder */
     548                s = tr_buildPath( tr_sessionGetConfigDir( session ), "web", NULL );
     549                if( !isClutchDir( s ) ) {
     550                    tr_free( s );
     551                    s = NULL;
     552                }
     553            }
    543554
    544555#elif defined( WIN32 )
Note: See TracChangeset for help on using the changeset viewer.