Bug 466038 - wayland: file open dialog using portal does not show the selection
Summary: wayland: file open dialog using portal does not show the selection
Status: CLOSED NOT A BUG
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.27.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-18 22:35 UTC by slartibart70
Modified: 2023-02-21 20:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description slartibart70 2023-02-18 22:35:40 UTC
Use  the env.Var GTK_USE_PORTAL=1 and start firefox or chromium-freeworld, then open a file with Ctrl-O.
The open-file Portal dialog comes up.
Problems:
- the current selection is not highlighted any more (this can be fixed by resizing the dialog)
- hovering with the mouse over a file shows the correct preview 
- use the cursor keys to move the selection (this is still working, that is, i see the selected file in the 'name' input field: no visible selection is shown in the file list, and if you move way to the bottom, so that the list-pane needs to scroll, you get garbled content (it still scrolls somehow)

For now, this dialog is unusable.

If i start firefox like this:
GTK_USE_PORTAL=0 firefox
the 'native' file-open dialog works ok.
I cannot run 
GTK_USE_PORTAL=0 chromium-freeworld
though, this always uses portal

Operating System: Fedora Linux 37
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.12-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7820HQ CPU @ 2.90GHz
Memory: 31,1 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 630
System Version: ThinkPad T470p
Comment 1 Nate Graham 2023-02-21 18:35:01 UTC
Thanks for the bug report! Unfortunately this bug reports multiple distinct issues, which will make it not actionable. See https://community.kde.org/Get_Involved/Issue_Reporting#Multiple_issues_in_a_single_Bugzilla_ticket for more explanation.

Can you ask you to open a new bug report for each specific issue? Thanks again!
Comment 2 slartibart70 2023-02-21 18:49:12 UTC
sorry for the confusion:
it's just a single bug:

in wayland using chrome or firefox, Ctrl-O file open dialog with xdg-portal is broken {usability wise}
The save-as dialog instead works perfectly

The part with GTK_USE_PORTAL=0 was just additional info
Comment 3 Nate Graham 2023-02-21 18:51:48 UTC
It's three distinct bugs. Please open a separate bug report for each one. Thanks!
Comment 4 slartibart70 2023-02-21 20:42:41 UTC
done, and more detailed info provided
Comment 5 Nate Graham 2023-02-21 20:47:07 UTC
Thanks a lot! I'll look at those bug reports you filed soon.