Bug 494488

Summary: "Restore in future sessions" for screensharing not working properly
Product: [Plasma] xdg-desktop-portal-kde Reporter: Jan Bidler <janbidler00>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aleixpol, kde, nate, nicolas.fella
Priority: NOR    
Version First Reported In: 6.2.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jan Bidler 2024-10-10 21:03:20 UTC
SUMMARY
I'm not sure if I'm misinterpreting this feature correctly, but on future sessions my selection isn't automatically restored.

STEPS TO REPRODUCE
1. Use wayland
2. Open OBS 
3. Add a window capture pipewire source
4. select some window (e.g. firefox)
5. close OBS
6. reopen OBS

OBSERVED RESULT
When OBS is reopened, the portal will immediately pop up and prompt me for a new window again

EXPECTED RESULT
OBS should open with firefox still being selected.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 1600 Six-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B450M DS3H
Comment 1 Nicolas Fella 2024-10-12 13:57:41 UTC
This works as expected for me
Comment 2 Jan Bidler 2024-10-14 15:42:07 UTC
Okay, strangely enough while trying to replicate this now to get some logs it just... worked.
Weird, especially since I've had this issue for at least a year or so. But I'll take it.