2026-02-12 13:47:50 +00:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
// SPDX-FileCopyrightText: 2026 A-La-Karte Contributors
|
|
|
|
|
|
2026-02-14 17:27:07 +00:00
|
|
|
#include <QCommandLineParser>
|
2026-02-12 13:47:50 +00:00
|
|
|
#include <QCoreApplication>
|
|
|
|
|
|
2026-02-14 17:27:07 +00:00
|
|
|
#include <KAboutData>
|
|
|
|
|
|
|
|
|
|
#include "alakarte-version.h"
|
|
|
|
|
|
2026-02-12 13:47:50 +00:00
|
|
|
#include "inputdaemon.h"
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
QCoreApplication app(argc, argv);
|
2026-02-14 17:27:07 +00:00
|
|
|
app.setOrganizationDomain(QStringLiteral("kde.org"));
|
2026-02-12 13:47:50 +00:00
|
|
|
QCoreApplication::setApplicationName(QStringLiteral("alakarte"));
|
|
|
|
|
|
2026-02-14 17:27:07 +00:00
|
|
|
KAboutData aboutData(QStringLiteral("alakarte-inputd"),
|
|
|
|
|
QStringLiteral("A-La-Karte Input Daemon"),
|
|
|
|
|
QStringLiteral(ALAKARTE_VERSION_STRING),
|
|
|
|
|
QStringLiteral("Gamepad input service for A-La-Karte"),
|
|
|
|
|
KAboutLicense::GPL_V3,
|
|
|
|
|
QStringLiteral("© 2026 A-La-Karte Contributors"));
|
|
|
|
|
aboutData.addAuthor(QStringLiteral("A-La-Karte Contributors"), QStringLiteral("Developer"), QString());
|
|
|
|
|
KAboutData::setApplicationData(aboutData);
|
|
|
|
|
|
|
|
|
|
QCommandLineParser parser;
|
|
|
|
|
aboutData.setupCommandLine(&parser);
|
|
|
|
|
parser.process(app);
|
|
|
|
|
aboutData.processCommandLine(&parser);
|
|
|
|
|
|
2026-02-12 13:47:50 +00:00
|
|
|
InputDaemon daemon;
|
|
|
|
|
if (!daemon.init()) {
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
|
}
|