From 9701e65bd8c09b0a929e129e881757f0235c0a24 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 7 Dec 2008 22:35:49 +0000 Subject: [PATCH] use the short username for the Bonjour web ui name --- macosx/BonjourController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/BonjourController.m b/macosx/BonjourController.m index 933c4e40d..276854501 100644 --- a/macosx/BonjourController.m +++ b/macosx/BonjourController.m @@ -44,8 +44,8 @@ BonjourController * fDefaultController = nil; { [self stop]; - CFStringRef machineName = CSCopyMachineName(); - NSString * serviceName = [NSString stringWithFormat: @"%@: Transmission Web Interface", (NSString *)machineName]; + CFStringRef userName = CSCopyUserName(TRUE); + NSString * serviceName = [NSString stringWithFormat: @"Transmission Web Interface (%@)", (NSString *)userName]; CFRelease(machineName); fService = [[NSNetService alloc] initWithDomain: @"local." type: @"_http._tcp." name: serviceName port: port];