Ignore:
Timestamp:
Jul 11, 2008, 4:07:14 AM (14 years ago)
Author:
charles
Message:

(1) add clutch to the tarball.
(2) on autoconf-based installs, install the clutch files in $(datadir)/transmission/web
(3) new function tr_getClutchDir(). Default implementation follows the XDG spec.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpc-server.c

    r6275 r6319  
    2525#include "transmission.h"
    2626#include "bencode.h"
     27#include "platform.h"
    2728#include "rpc.h"
    2829#include "rpc-server.h"
     
    252253        char ports[128];
    253254        char passwd[MAX_PATH_LENGTH];
    254         char clutchDir[MAX_PATH_LENGTH];
    255         char * clutchAlias;
     255        const char * clutchDir = tr_getClutchDir( server->session );
     256        char * clutchAlias = tr_strdup_printf( "%s=%s", "/transmission/clutch", clutchDir );
    256257        struct timeval tv = tr_timevalMsec( UNUSED_INTERVAL_MSEC );
    257258
    258         tr_buildPath( clutchDir, sizeof( clutchDir ), tr_sessionGetConfigDir( server->session ), "clutch", NULL );
    259         clutchAlias = tr_strdup_printf( "%s=%s", "/transmission/clutch", clutchDir );
    260 
     259fprintf( stderr, "clutchAlias is [%s]\n", clutchAlias );
    261260        getPasswordFile( server, passwd, sizeof( passwd ) );
    262261        if( !server->isPasswordEnabled )
Note: See TracChangeset for help on using the changeset viewer.