mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
get the username using cocoa instead of carbon
This commit is contained in:
parent
4e16e80ad6
commit
8a5814aa66
1 changed files with 1 additions and 3 deletions
|
@ -44,9 +44,7 @@ BonjourController * fDefaultController = nil;
|
|||
{
|
||||
[self stop];
|
||||
|
||||
CFStringRef userName = CSCopyUserName(TRUE);
|
||||
NSString * serviceName = [NSString stringWithFormat: @"Transmission Web Interface (%@)", (NSString *)userName];
|
||||
CFRelease(userName);
|
||||
NSString * serviceName = [NSString stringWithFormat: @"Transmission Web Interface (%@)", NSUserName()];
|
||||
|
||||
fService = [[NSNetService alloc] initWithDomain: @"local." type: @"_http._tcp." name: serviceName port: port];
|
||||
[fService setDelegate: self];
|
||||
|
|
Loading…
Reference in a new issue