Handle situation of no XDG_RUNTIME_DIR gracefully
ClosedPublic

Authored by graesslin on Jul 4 2016, 7:51 AM.

Details

Summary

If KWin fails to start the Wayland server due to XDG_RUNTIME_DIR not
being set, kwin_wayland should terminate with an error condition but
not crash.

This change makes sure that KWin detects that the Wayland server does
not work and terminates the startup early and ensures that it doesn't
crash while going down.

An error message is shown that we could not create the Wayland server.

Test Plan

Test case added which verifies that WaylandServer fails to
init. Manual testing that kwin_wayland exits with error 1.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 4924.Jul 4 2016, 7:51 AM
graesslin retitled this revision from to Handle situation of no XDG_RUNTIME_DIR gracefully.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptJul 4 2016, 7:51 AM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
sebas accepted this revision.Jul 12 2016, 9:17 PM
sebas added a reviewer: sebas.
This revision is now accepted and ready to land.Jul 12 2016, 9:17 PM
This revision was automatically updated to reflect the committed changes.