mirror of
https://github.com/munki/munki.git
synced 2026-01-06 14:40:09 -06:00
git-svn-id: http://munki.googlecode.com/svn/trunk@47 a4e17f2e-e282-11dd-95e1-755cbddbdd66
31 lines
616 B
Objective-C
31 lines
616 B
Objective-C
//
|
|
// SystemConfigurationInterface.m
|
|
// MunkiStatus
|
|
//
|
|
// Created by Greg Neagle on 4/23/09.
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <AppKit/AppKit.h>
|
|
#import <SystemConfiguration/SystemConfiguration.h>
|
|
#import "SystemConfigurationInterface.h"
|
|
|
|
@implementation NSApplication (ASKAMultiLanguage)
|
|
|
|
- (NSString *)consoleUser
|
|
{
|
|
CFStringRef cfuser = NULL;
|
|
NSString *username;
|
|
|
|
cfuser = SCDynamicStoreCopyConsoleUser( NULL, NULL, NULL );
|
|
|
|
if ( cfuser != NULL ) {
|
|
username = [ ( NSString * )cfuser retain ];
|
|
CFRelease( cfuser );
|
|
} else {
|
|
username = @"";
|
|
}
|
|
return username;
|
|
}
|
|
|
|
@end
|