-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmain.cpp
27 lines (21 loc) · 859 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later
#include <QGuiApplication>
#include <QDBusConnection>
#include <QDebug>
#include <DGuiApplicationHelper>
#include "dbus/launcher1compat.h"
int main(int argc, char* argv[])
{
QGuiApplication app(argc, argv);
app.setQuitOnLastWindowClosed(false);
app.setApplicationName(QStringLiteral("dde-application-wizard"));
Dtk::Gui::DGuiApplicationHelper::loadTranslator();
QDBusConnection connection = QDBusConnection::sessionBus();
if (!connection.registerService(QStringLiteral("org.deepin.dde.daemon.Launcher1")) ||
!connection.registerObject(QStringLiteral("/org/deepin/dde/daemon/Launcher1"), &Launcher1Compat::instance())) {
qFatal("register dbus service failed");
}
return app.exec();
}