#include "HumbugWindow.h"
#include "HumbugApplication.h"
#include "Config.h"

#ifdef Q_OS_MAC
#include "mac/Setup.h"
#endif

int main(int argc, char *argv[])
{
    HumbugApplication a(argc, argv);
    a.setApplicationName("Humbug");
    a.setApplicationVersion(HUMBUG_VERSION_STRING);

    QCoreApplication::setOrganizationName("Humbug");
    QCoreApplication::setOrganizationDomain("humbug.com");
    QCoreApplication::setApplicationName("Humbug");

    HumbugWindow w;
    if (argc == 3 && QString(argv[1]) == QString("--site")) {
        w.setUrl(QUrl(argv[2]));
    }

#ifdef Q_OS_MAC
    macMain();
#endif

    a.setMainWindow(&w);

    w.show();

    return a.exec();
}

#include "HumbugWindow.h"
#include "HumbugApplication.h"
#include "Config.h"

#ifdef Q_OS_MAC
#include "mac/Setup.h"
#endif

int main(int argc, char *argv[])
{
    HumbugApplication a(argc, argv);
    a.setApplicationName("Humbug");
    a.setApplicationVersion(HUMBUG_VERSION_STRING);

    QCoreApplication::setOrganizationName("Humbug");
    QCoreApplication::setOrganizationDomain("humbug.com");
    QCoreApplication::setApplicationName("Humbug Desktop");

    HumbugWindow w;
    if (argc == 3 && QString(argv[1]) == QString("--site")) {
        w.setUrl(QUrl(argv[2]));
    }

#ifdef Q_OS_MAC
    macMain();
#endif

    a.setMainWindow(&w);

    w.show();

    return a.exec();
}

Use a more specific application name for use in UA discrimination
Use a more specific application name for use in UA discrimination
