Changeset View
Changeset View
Standalone View
Standalone View
shell/main.cpp
Show All 33 Lines | |||||
34 | #include <klocalizedstring.h> | 34 | #include <klocalizedstring.h> | ||
35 | #include <kcrash.h> | 35 | #include <kcrash.h> | ||
36 | #include <kworkspace.h> | 36 | #include <kworkspace.h> | ||
37 | 37 | | |||
38 | #include "shellcorona.h" | 38 | #include "shellcorona.h" | ||
39 | #include "standaloneappcorona.h" | 39 | #include "standaloneappcorona.h" | ||
40 | #include "shellmanager.h" | 40 | #include "shellmanager.h" | ||
41 | #include "coronatesthelper.h" | 41 | #include "coronatesthelper.h" | ||
42 | #include "softwarerendernotifier.h" | ||||
42 | 43 | | |||
43 | #include <QDir> | 44 | #include <QDir> | ||
44 | 45 | | |||
45 | int main(int argc, char *argv[]) | 46 | int main(int argc, char *argv[]) | ||
46 | { | 47 | { | ||
47 | //Plasma scales itself to font DPI | 48 | //Plasma scales itself to font DPI | ||
48 | //on X, where we don't have compositor scaling, this generally works fine. | 49 | //on X, where we don't have compositor scaling, this generally works fine. | ||
49 | //also there are bugs on older Qt, especially when it comes to fractional scaling | 50 | //also there are bugs on older Qt, especially when it comes to fractional scaling | ||
▲ Show 20 Lines • Show All 127 Lines • ▼ Show 20 Line(s) | 176 | auto message = QDBusMessage::createMethodCall(QStringLiteral("org.kde.plasmashell"), | |||
177 | QStringLiteral("org.qtproject.Qt.QCoreApplication"), | 178 | QStringLiteral("org.qtproject.Qt.QCoreApplication"), | ||
178 | QStringLiteral("quit")); | 179 | QStringLiteral("quit")); | ||
179 | QDBusConnection::sessionBus().call(message); //deliberately block until it's done, so we register the name after the app quits | 180 | QDBusConnection::sessionBus().call(message); //deliberately block until it's done, so we register the name after the app quits | ||
180 | } | 181 | } | ||
181 | } | 182 | } | ||
182 | 183 | | |||
183 | KDBusService service(KDBusService::Unique); | 184 | KDBusService service(KDBusService::Unique); | ||
184 | 185 | | |||
186 | SoftwareRendererNotifier::notifyIfRelevant(); | ||||
185 | QObject::connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, ShellManager::instance(), &QObject::deleteLater); | 187 | QObject::connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, ShellManager::instance(), &QObject::deleteLater); | ||
186 | 188 | | |||
187 | return app.exec(); | 189 | return app.exec(); | ||
188 | } | 190 | } |