PipeWire: screen capture - close the screen cast session on teardown


Nothing ever called org.freedesktop.portal.Session.Close on the session
handle we get from CreateSession, so every screen capture leaked a
portal session for the lifetime of the process.
We now create a QDBusInterface for the session, monitor the
`sessionClosed` signal for remote signals and close the session
explicitly on deardown.

Pick-to: 6.12
Change-Id: I48ab2aa17e2158a138d8bc6fed73c3272a580f84
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
commit2ccfc1fcb857d7bb5da9cd170a5362f9cad1a289
parent1a2bc604d63b9d8bdf7d4d3c8432c52633d51b46
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeTue, 1 Sep 2026 09:21:37 +0000