Changeset View
Changeset View
Standalone View
Standalone View
startkde/startplasma-waylandsession.cpp
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 23 | { | |||
---|---|---|---|---|---|
51 | } | 51 | } | ||
52 | setupGSLib(); | 52 | setupGSLib(); | ||
53 | 53 | | |||
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()) | | |||
60 | return 3; | | |||
61 | | ||||
62 | if (!startKSMServer(true)) | 59 | if (!startKSMServer(true)) | ||
63 | return 4; | 60 | return 4; | ||
64 | 61 | | |||
65 | // Anything after here is logout | 62 | // Anything after here is logout | ||
66 | // It is not called after shutdown/restart | 63 | // It is not called after shutdown/restart | ||
67 | waitForKonqi(); | 64 | waitForKonqi(); | ||
68 | out << "startplasma-waylandsession: Shutting down...\n"; | 65 | out << "startplasma-waylandsession: Shutting down...\n"; | ||
69 | 66 | | |||
70 | runSync(QStringLiteral("kdeinit5_shutdown"), {}); | 67 | runSync(QStringLiteral("kdeinit5_shutdown"), {}); | ||
71 | 68 | | |||
72 | cleanupX11(); | 69 | cleanupX11(); | ||
73 | out << "startplasma-waylandsession: Done.\n"; | 70 | out << "startplasma-waylandsession: Done.\n"; | ||
74 | 71 | | |||
75 | return 0; | 72 | return 0; | ||
76 | } | 73 | } |