Bug 486387

Summary: Feature to restore window streams doesn't work
Product: [Plasma] xdg-desktop-portal-kde Reporter: Martmists <martmists>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, jgrulich, kde, nate, ngompa13
Priority: NOR Keywords: regression
Version: 6.0.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.1.0
Sentry Crash Report:

Description Martmists 2024-05-01 09:04:47 UTC
SUMMARY
Currently, window capture in OBS opens a popup for every window, instead of remembering the last known application like it does on X11. In the OBS community they said it was a Wayland issue, on the Wayland git they said it was an application or compositor issue.

STEPS TO REPRODUCE
1. Launch OBS
2. Add a window capture source
3. Restart OBS

OBSERVED RESULT
A popup appears

EXPECTED RESULT
It keeps a reference to the previous window title/application and captures it when it becomes available

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.8-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 7900X 12-Core Processor
Memory: 62.0 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4080 SUPER/PCIe/SSE2
Manufacturer: ASUS

ADDITIONAL INFORMATION
See also: 
- https://gitlab.freedesktop.org/wayland/wayland/-/issues/463
- https://github.com/obsproject/obs-studio/issues/10627
Comment 1 Aleix Pol 2024-05-03 22:56:42 UTC
Changed the title. It's not that it's restricted, it's that it's just not working, it used to work.
Comment 2 Martmists 2024-05-26 09:11:11 UTC
Sorry if I'm wrong, but doesn't restoring windows only apply to windows in the same session? I meant to open this issue not just for reopening in the same session, but more importantly, across multiple sessions and/or reboots.
Comment 3 Nate Graham 2024-06-12 13:57:25 UTC
This is fixed in Plasma 6.1.