Mercurial > hg > easyhg
view common_osx.mm @ 75:295e3ee4a257
* Allocate a pty for the subprocess, and ask the user for password. Very rudimentary and non-portable.
author | Chris Cannam |
---|---|
date | Fri, 19 Nov 2010 18:39:40 +0000 |
parents | 68aebc316898 |
children |
line wrap: on
line source
#include "common.h" #include <QString> #ifdef Q_OS_MAC #include <Foundation/Foundation.h> QString getUserRealName() { NSString *s = NSFullUserName(); return QString::fromLocal8Bit([s UTF8String]); } #endif