<table><tr><td style="">fvogt retitled this revision from "RFC: Use wl_display_add_socket_auto by default" to "Add option to use wl_display_add_socket_auto".<br />fvogt edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-4vqnsu5pgmcuy74/">(Show Details)</a><br />fvogt edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-2eaigwmhiq53u44/">(Show Details)</a>
</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/D17122">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">If there is no s</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">If automaticS</span>ocketNam<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">e specified explicitly</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">ing is enabled</span>, it will use<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"><br />
wl_display_add_socket_auto to allocate the next free socket.<br />
The resulting name can be retrieved using socketName after a successful<br />
start afterwards.<br />
<br />
This is a RFC for now because this changes the default value of socketName</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> wl_display_add_socket_auto</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">(and causes the respective autotest to fail).<br />
<br />
If that's ok, I'll adjust</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">to allocate</span> the <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">test accordingly. If not,</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">next free socket.</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">please suggest how this</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">The resulting name can be retrieved using</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">should be implemented, a new autoSocketName bool property?</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">socketName after a successful start afterwards.</span></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;">Ran the new autotest, passes. kwin_wayland <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">picks the next free<br />
socket without modifications and WAYLAND_DISPLAY is set properly</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">still uses the old behaviour</span>.</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R127 KWayland</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17122">https://phabricator.kde.org/D17122</a></div></div><br /><div><strong>To: </strong>fvogt, KWin, Plasma<br /><strong>Cc: </strong>romangg, kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>