<table><tr><td style="">graesslin created this revision.<br />graesslin added reviewers: KWin, Plasma on Wayland.<br />Restricted Application added subscribers: kwin, plasma-devel.<br />Restricted Application added projects: Plasma on Wayland, KWin.</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D2078" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>If KWin fails to start the Wayland server due to XDG_RUNTIME_DIR not<br />
being set, kwin_wayland should terminate with an error condition but<br />
not crash.</p>
<p>This change makes sure that KWin detects that the Wayland server does<br />
not work and terminates the startup early and ensures that it doesn't<br />
crash while going down.</p>
<p>An error message is shown that we could not create the Wayland server.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Test case added which verifies that WaylandServer fails to<br />
init. Manual testing that kwin_wayland exits with error 1.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKWIN KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>no-xdg-runtime-dir</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2078" rel="noreferrer">https://phabricator.kde.org/D2078</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/integration/CMakeLists.txt<br />
autotests/integration/debug_console_test.cpp<br />
autotests/integration/decoration_input_test.cpp<br />
autotests/integration/dont_crash_aurorae_destroy_deco.cpp<br />
autotests/integration/dont_crash_cancel_animation.cpp<br />
autotests/integration/dont_crash_empty_deco.cpp<br />
autotests/integration/dont_crash_glxgears.cpp<br />
autotests/integration/dont_crash_no_border.cpp<br />
autotests/integration/input_stacking_order.cpp<br />
autotests/integration/internal_window.cpp<br />
autotests/integration/lockscreen.cpp<br />
autotests/integration/maximize_test.cpp<br />
autotests/integration/move_resize_window_test.cpp<br />
autotests/integration/no_xdg_runtime_dir_test.cpp<br />
autotests/integration/plasma_surface_test.cpp<br />
autotests/integration/plasmawindow_test.cpp<br />
autotests/integration/platformcursor.cpp<br />
autotests/integration/pointer_input.cpp<br />
autotests/integration/quick_tiling_test.cpp<br />
autotests/integration/scene_qpainter_test.cpp<br />
autotests/integration/shade_test.cpp<br />
autotests/integration/shell_client_test.cpp<br />
autotests/integration/start_test.cpp<br />
autotests/integration/struts_test.cpp<br />
autotests/integration/touch_input_test.cpp<br />
autotests/integration/transient_no_input_test.cpp<br />
autotests/integration/transient_placement.cpp<br />
autotests/integration/xclipboardsync_test.cpp<br />
main_wayland.cpp<br />
wayland_server.cpp<br />
wayland_server.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>graesslin, KWin, Plasma on Wayland<br /><strong>Cc: </strong>plasma-devel, kwin, hardening, jensreuterberg, sebas<br /></div>