mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
add the beginnings of ipc to the mac front end
This commit is contained in:
@@ -248,6 +248,7 @@ usage( const char * msg, ... )
|
||||
" -S --stop all Stop all running torrents\n"
|
||||
" -t --type daemon Use the daemon frontend, transmission-daemon\n"
|
||||
" -t --type gtk Use the GTK+ frontend, transmission-gtk\n"
|
||||
" -t --type mac Use the MacOS X frontend\n"
|
||||
" -u --upload-limit <int> Max upload rate in KiB/s\n"
|
||||
" -U --upload-unlimited No upload rate limit\n"
|
||||
" -x --proxy Use proxy command to connect to frontend\n",
|
||||
@@ -373,6 +374,14 @@ readargs( int argc, char ** argv, struct opts * opts )
|
||||
opts->type = CONF_PATH_TYPE_GTK;
|
||||
opts->sock = NULL;
|
||||
}
|
||||
else if( 0 == strcasecmp( "mac", optarg ) ||
|
||||
0 == strcasecmp( "osx", optarg ) ||
|
||||
0 == strcasecmp( "macos", optarg ) ||
|
||||
0 == strcasecmp( "macosx", optarg ) )
|
||||
{
|
||||
opts->type = CONF_PATH_TYPE_OSX;
|
||||
opts->sock = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
opts->sock = optarg;
|
||||
|
||||
Reference in New Issue
Block a user