Changeset View
Changeset View
Standalone View
Standalone View
startkde/startplasma-waylandsession.cpp
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 23 | { | |||
---|---|---|---|---|---|
54 | if (!syncDBusEnvironment()) { | 54 | if (!syncDBusEnvironment()) { | ||
55 | out << "Could not sync environment to dbus.\n"; | 55 | out << "Could not sync environment to dbus.\n"; | ||
56 | return 2; | 56 | return 2; | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | if (!startKDEInit()) | 59 | if (!startKDEInit()) | ||
60 | return 3; | 60 | return 3; | ||
61 | 61 | | |||
62 | if (!startKSMServer()) | 62 | if (!startKSMServer(true)) | ||
63 | return 4; | 63 | return 4; | ||
64 | 64 | | |||
65 | // Anything after here is logout | 65 | // Anything after here is logout | ||
66 | // It is not called after shutdown/restart | 66 | // It is not called after shutdown/restart | ||
67 | waitForKonqi(); | 67 | waitForKonqi(); | ||
68 | out << "startplasma-waylandsession: Shutting down...\n"; | 68 | out << "startplasma-waylandsession: Shutting down...\n"; | ||
69 | 69 | | |||
70 | runSync(QStringLiteral("kdeinit5_shutdown"), {}); | 70 | runSync(QStringLiteral("kdeinit5_shutdown"), {}); | ||
71 | 71 | | |||
72 | cleanupX11(); | 72 | cleanupX11(); | ||
73 | out << "startplasma-waylandsession: Done.\n"; | 73 | out << "startplasma-waylandsession: Done.\n"; | ||
74 | 74 | | |||
75 | return 0; | 75 | return 0; | ||
76 | } | 76 | } |