<div>graesslin created this revision.<br />
graesslin added a reviewer: Plasma.<br />
Restricted Application added a project: Plasma.<br />
Restricted Application added a subscriber: plasma-devel.</div><br /><div><strong>REVISION SUMMARY</strong><div><p>So far KWin resolved the logind session to take over by using its own<br />
PID with the method GetSessionByPID. This doesn't work if KWin itself<br />
is not part of the session or if KWin is supposed to take over a<br />
different session.</p>
<p>The session to take over can now be provided by the env variable:<br />
KWIN_LOGIN_SESSION</p>
<p>This allows to e.g. run kwin on vt1, but have the graphical output<br />
on vt2. Thus it's possible to see the debug output. Also it should allow<br />
to run kwin_wayland through an ssh session, so that gdb can be used.</p>
<p>If we take over another session on a different vt, we need to make sure<br />
that it's the current virtual terminal. Otherwise assumptions in the<br />
startup code would break. So let's ensure the session we integrate with<br />
is active.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKWIN KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>logind-session-arg</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D1445" rel="noreferrer">https://phabricator.kde.org/D1445</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>logind.cpp</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, Plasma<br /><strong>Cc: </strong>plasma-devel, sebas<br /></div>