Changeset View
Changeset View
Standalone View
Standalone View
shell/main.cpp
Show All 25 Lines | |||||
26 | #include <QMessageBox> | 26 | #include <QMessageBox> | ||
27 | 27 | | |||
28 | #include <KAboutData> | 28 | #include <KAboutData> | ||
29 | #include <KQuickAddons/QtQuickSettings> | 29 | #include <KQuickAddons/QtQuickSettings> | ||
30 | 30 | | |||
31 | #include <kdbusservice.h> | 31 | #include <kdbusservice.h> | ||
32 | #include <klocalizedstring.h> | 32 | #include <klocalizedstring.h> | ||
33 | #include <kcrash.h> | 33 | #include <kcrash.h> | ||
34 | #include <kworkspace.h> | ||||
34 | 35 | | |||
35 | #include "shellcorona.h" | 36 | #include "shellcorona.h" | ||
36 | #include "standaloneappcorona.h" | 37 | #include "standaloneappcorona.h" | ||
37 | #include "shellmanager.h" | 38 | #include "shellmanager.h" | ||
38 | #include "coronatesthelper.h" | 39 | #include "coronatesthelper.h" | ||
39 | 40 | | |||
40 | #include <QDir> | 41 | #include <QDir> | ||
41 | 42 | | |||
Show All 9 Lines | 44 | { | |||
51 | //even if we don't use Qt scaling the compositor will try to scale us anyway so we have no choice | 52 | //even if we don't use Qt scaling the compositor will try to scale us anyway so we have no choice | ||
52 | if (!qEnvironmentVariableIsSet("PLASMA_USE_QT_SCALING")) { | 53 | if (!qEnvironmentVariableIsSet("PLASMA_USE_QT_SCALING")) { | ||
53 | qunsetenv("QT_DEVICE_PIXEL_RATIO"); | 54 | qunsetenv("QT_DEVICE_PIXEL_RATIO"); | ||
54 | QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | 55 | QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | ||
55 | } | 56 | } | ||
56 | 57 | | |||
57 | QQuickWindow::setDefaultAlphaBuffer(true); | 58 | QQuickWindow::setDefaultAlphaBuffer(true); | ||
58 | 59 | | |||
60 | KWorkSpace::detectPlatform(argc, argv); | ||||
59 | QApplication app(argc, argv); | 61 | QApplication app(argc, argv); | ||
60 | KLocalizedString::setApplicationDomain("plasmashell"); | 62 | KLocalizedString::setApplicationDomain("plasmashell"); | ||
61 | 63 | | |||
62 | // The executable's path is added to the library/plugin paths. | 64 | // The executable's path is added to the library/plugin paths. | ||
63 | // This does not make much sense for plasmashell. | 65 | // This does not make much sense for plasmashell. | ||
64 | app.removeLibraryPath(QCoreApplication::applicationDirPath()); | 66 | app.removeLibraryPath(QCoreApplication::applicationDirPath()); | ||
65 | 67 | | |||
66 | KQuickAddons::QtQuickSettings::init(); | 68 | KQuickAddons::QtQuickSettings::init(); | ||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |