view common_osx.mm @ 189:6bb510abe4f1

* Handle failure to start processes at all (e.g. because executable path is wrong)
author Chris Cannam
date Mon, 20 Dec 2010 16:47:00 +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